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

Method Len

pkg/util/json/json.go:157–157  ·  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

155 // Len returns the number of outermost elements in the JSON document if it is an object or an array.
156 // Otherwise, Len returns 0.
157 Len() int
158
159 // HasContainerLeaf returns whether this document contains in it somewhere
160 // either the empty array or the empty object.

Callers 4

visitReplaceFunction · 0.65
CompareMethod · 0.65
CompareMethod · 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