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

Method encode

pkg/util/json/json.go:142–142  ·  view source on GitHub ↗

encode appends the encoding of the JSON document to appendTo, returning the result alongside the JEntry for the document. Note that some values (true/false/null) are encoded with 0 bytes and are purely defined by their JEntry.

(appendTo []byte)

Source from the content-addressed store, hash-verified

140 // (true/false/null) are encoded with 0 bytes and are purely defined by their
141 // JEntry.
142 encode(appendTo []byte) (jEntry jEntry, b []byte, err error)
143
144 // MaybeDecode returns an equivalent JSON which is not a jsonEncoded.
145 MaybeDecode() JSON

Callers 3

encodeMethod · 0.65
encodeMethod · 0.65
EncodeJSONFunction · 0.65

Implementers 4

jsonNullpkg/util/json/json.go
jsonFalsepkg/util/json/json.go
jsonTruepkg/util/json/json.go
jsonEncodedpkg/util/json/encoded.go

Calls

no outgoing calls

Tested by

no test coverage detected