MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / EncodeJSONEmptyObject

Function EncodeJSONEmptyObject

pkg/util/encoding/encoding.go:975–977  ·  view source on GitHub ↗

EncodeJSONEmptyObject returns a byte array b with a byte to signify an empty JSON object.

(b []byte)

Source from the content-addressed store, hash-verified

973
974// EncodeJSONEmptyObject returns a byte array b with a byte to signify an empty JSON object.
975func EncodeJSONEmptyObject(b []byte) []byte {
976 return append(b, escape, escapedTerm, jsonEmptyObject)
977}
978
979// EncodeEmptyArray returns a byte array b with a byte to signify an empty array.
980func EncodeEmptyArray(b []byte) []byte {

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…