MCPcopy Create free account
hub / github.com/tailscale/hujson / normalize

Method normalize

format.go:98–129  ·  view source on GitHub ↗

normalize performs simple normalization changes. In particular, it: - normalizes strings, - normalizes empty objects and arrays as simply {} or [], - normalizes whitespace between names and colons, - normalizes whitespace between values and commas. It always returns true to be compatible with compo

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

FormatMethod · 0.95

Calls 7

StringFunction · 0.85
hasCommentMethod · 0.80
KindMethod · 0.65
lengthMethod · 0.65
afterExtraMethod · 0.65
allValuesMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected