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

Method AsArray

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

AsArray returns the JSON document as an Array if it is a array type, and a boolean indicating if this JSON value is a array type.

()

Source from the content-addressed store, hash-verified

188 // AsArray returns the JSON document as an Array if it is a array type,
189 // and a boolean indicating if this JSON value is a array type.
190 AsArray() ([]JSON, bool)
191
192 // Exists implements the `?` operator: does the string exist as a top-level
193 // key within the JSON value?

Callers 2

IsCompositeMethod · 0.65
AsArrayMethod · 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