MCPcopy Create free account
hub / github.com/go-json-experiment/json / Compact

Method Compact

jsontext/value.go:164–170  ·  view source on GitHub ↗

Compact removes all whitespace from the raw JSON value. It does not reformat JSON strings or numbers to use any other representation. To maximize the set of JSON values that can be formatted, this permits values with duplicate names and invalid UTF-8. Compact is equivalent to calling [Value.Format

(opts ...Options)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

CompactFunction · 0.80
FuzzValueFormatFunction · 0.80
TestValueMethodsFunction · 0.80

Calls 4

formatMethod · 0.95
AllowDuplicateNamesFunction · 0.70
AllowInvalidUTF8Function · 0.70
PreserveRawStringsFunction · 0.70

Tested by 2

FuzzValueFormatFunction · 0.64
TestValueMethodsFunction · 0.64