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

Function AddJSONPathSeparator

pkg/util/encoding/encoding.go:970–972  ·  view source on GitHub ↗

AddJSONPathSeparator adds a json path separator to a byte array.

(b []byte)

Source from the content-addressed store, hash-verified

968
969// AddJSONPathSeparator adds a json path separator to a byte array.
970func AddJSONPathSeparator(b []byte) []byte {
971 return append(b, escape, escapedJSONObjectKeyTerm)
972}
973
974// EncodeJSONEmptyObject returns a byte array b with a byte to signify an empty JSON object.
975func EncodeJSONEmptyObject(b []byte) []byte {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…