MCPcopy Create free account
hub / github.com/go-json-experiment/json / StackDepth

Method StackDepth

jsontext/encode.go:956–959  ·  view source on GitHub ↗

StackDepth returns the depth of the state machine for written JSON data. Each level on the stack represents a nested JSON object or array. It is incremented whenever a [BeginObject] or [BeginArray] token is encountered and decremented whenever an [EndObject] or [EndArray] token is encountered. Stac

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

MarshalJSONToMethod · 0.45
UnmarshalJSONFromMethod · 0.45

Calls 1

DepthMethod · 0.80

Tested by

no test coverage detected