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

Method StripNulls

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

StripNulls returns the JSON document with all object fields that have null values omitted and whether it needs to strip nulls. Stripping nulls is needed only if it contains some object fields having null values.

()

Source from the content-addressed store, hash-verified

200 // and whether it needs to strip nulls. Stripping nulls is needed only if it contains some
201 // object fields having null values.
202 StripNulls() (JSON, bool, error)
203
204 // ObjectIter returns an *ObjectKeyIterator, nil if json is not an object.
205 ObjectIter() (*ObjectIterator, error)

Callers 3

StripNullsMethod · 0.65
StripNullsMethod · 0.65
StripNullsMethod · 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