MCPcopy Create free account
hub / github.com/dolthub/doltgresql / EncodeJSONEmptyArray

Function EncodeJSONEmptyArray

postgres/parser/encoding/encoding.go:499–501  ·  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

497
498// EncodeJSONEmptyArray returns a byte array b with a byte to signify an empty JSON array.
499func EncodeJSONEmptyArray(b []byte) []byte {
500 return append(b, escape, escapedTerm, jsonEmptyArray)
501}
502
503// AddJSONPathTerminator adds a json path terminator to a byte array.
504func AddJSONPathTerminator(b []byte) []byte {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected