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

Method Format

postgres/parser/json/json.go:664–675  ·  view source on GitHub ↗
(buf *bytes.Buffer)

Source from the content-addressed store, hash-verified

662}
663
664func (j jsonObject) Format(buf *bytes.Buffer) {
665 buf.WriteByte('{')
666 for i := range j {
667 if i != 0 {
668 buf.WriteString(", ")
669 }
670 encodeJSONString(buf, string(j[i].k))
671 buf.WriteString(": ")
672 j[i].v.Format(buf)
673 }
674 buf.WriteByte('}')
675}
676
677func (jsonNull) Size() uintptr { return 0 }
678

Callers

nothing calls this directly

Calls 3

encodeJSONStringFunction · 0.85
WriteStringMethod · 0.80
FormatMethod · 0.65

Tested by

no test coverage detected