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

Function EncodeJSONEmptyArray

pkg/util/encoding/encoding.go:724–726  ·  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

722
723// EncodeJSONEmptyArray returns a byte array b with a byte to signify an empty JSON array.
724func EncodeJSONEmptyArray(b []byte) []byte {
725 return append(b, escape, escapedTerm, jsonEmptyArray)
726}
727
728// AddJSONPathTerminator adds a json path terminator to a byte array.
729func AddJSONPathTerminator(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…