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

Method Len

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

Len returns the number of outermost elements in the JSON document if it is an object or an array. Otherwise, Len returns 0.

()

Source from the content-addressed store, hash-verified

232 // Len returns the number of outermost elements in the JSON document if it is an object or an array.
233 // Otherwise, Len returns 0.
234 Len() int
235
236 // HasContainerLeaf returns whether this document contains in it somewhere
237 // either the empty array or the empty object.

Callers 15

newStringBuilderWithWrapFunction · 0.65
tryWrapMethod · 0.65
doWrapMethod · 0.65
RequireGeomTInEpsilonFunction · 0.65
MoveTopKToFrontFunction · 0.65
EqualPtrFieldsFunction · 0.65
lengthMethod · 0.65
lengthMethod · 0.65
writeMultibyteRuneAsHexFunction · 0.65
advanceToLockedMethod · 0.65
TimersMethod · 0.65
AcrossSlicesFunction · 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