MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / AsText

Method AsText

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

AsText returns the JSON document as a string, with quotes around strings removed, and null as nil.

()

Source from the content-addressed store, hash-verified

176
177 // AsText returns the JSON document as a string, with quotes around strings removed, and null as nil.
178 AsText() (*string, error)
179
180 // AsDecimal returns the JSON document as a apd.Decimal if it is a numeric
181 // type, and a boolean indicating if this JSON value is a numeric type.

Callers 2

AsTextMethod · 0.65
RemoveStringMethod · 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