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

Method Decode

v1/stream.go:74–91  ·  view source on GitHub ↗

Decode reads the next JSON-encoded value from its input and stores it in the value pointed to by v. See the documentation for [Unmarshal] for details about the conversion of JSON into a Go value.

(v any)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

TestUnmarshalFunction · 0.95
TestEmptyStringFunction · 0.95
BenchmarkCodeDecoderFunction · 0.95
BenchmarkUnicodeDecoderFunction · 0.95
BenchmarkDecoderStreamFunction · 0.95
TestDecoderFunction · 0.95
TestDecoderBufferedFunction · 0.95
TestDecodeInStreamFunction · 0.95
TestHTTPDecodingFunction · 0.95
ExampleDecoderFunction · 0.95

Calls 3

transformSyntacticErrorFunction · 0.85
ReadValueMethod · 0.45
ErrorMethod · 0.45

Tested by 15

TestUnmarshalFunction · 0.76
TestEmptyStringFunction · 0.76
BenchmarkCodeDecoderFunction · 0.76
BenchmarkUnicodeDecoderFunction · 0.76
BenchmarkDecoderStreamFunction · 0.76
TestDecoderFunction · 0.76
TestDecoderBufferedFunction · 0.76
TestDecodeInStreamFunction · 0.76
TestHTTPDecodingFunction · 0.76
ExampleDecoderFunction · 0.76