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

Function EncodeJSONEmptyArray

pkg/util/encoding/encoding.go:960–962  ·  view source on GitHub ↗

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

(b []byte)

Source from the content-addressed store, hash-verified

958
959// EncodeJSONEmptyArray returns a byte array b with a byte to signify an empty JSON array.
960func EncodeJSONEmptyArray(b []byte) []byte {
961 return append(b, escape, escapedTerm, jsonEmptyArray)
962}
963
964// AddJSONPathTerminator adds a json path terminator to a byte array.
965func AddJSONPathTerminator(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…