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

Method reformatObject

jsontext/encode.go:716–822  ·  view source on GitHub ↗

reformatObject parses a JSON object from the start of src and appends it to the end of dst, reformatting whitespace and strings as needed. It returns the extended dst buffer and the number of consumed input bytes.

(dst []byte, src Value, depth int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

reformatValueMethod · 0.95

Calls 12

AppendIndentMethod · 0.95
insertQuotedMethod · 0.95
reformatValueMethod · 0.95
ConsumeWhitespaceFunction · 0.92
ConsumeSimpleStringFunction · 0.92
ReformatStringFunction · 0.92
NewInvalidCharacterErrorFunction · 0.92
wrapWithObjectNameFunction · 0.85
GetMethod · 0.80
LastMethod · 0.80
pushMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected