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

Function EncodeJSONEmptyObject

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

507
508// EncodeJSONEmptyObject returns a byte array b with a byte to signify an empty JSON object.
509func EncodeJSONEmptyObject(b []byte) []byte {
510 return append(b, escape, escapedTerm, jsonEmptyObject)
511}
512
513// EncodeNullAscending encodes a NULL value. The encodes bytes are appended to the
514// supplied buffer and the final buffer is returned. The encoded value for a

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected