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

Method Token

v1/stream.go:220–264  ·  view source on GitHub ↗

Token returns the next JSON token in the input stream. At the end of the input stream, Token returns nil, [io.EOF]. Token guarantees that the delimiters [ ] { } it returns are properly nested and matched: if Token encounters an unexpected delimiter in the input, it will return an error. The input

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

FuzzDecoderTokenFunction · 0.95
TestDecodeInStreamFunction · 0.95
TestTokenErrorFunction · 0.95
TestDecoderInputOffsetFunction · 0.95
ExampleDecoder_TokenFunction · 0.95
bench_test.goFile · 0.80

Calls 9

InputOffsetMethod · 0.95
transformSyntacticErrorFunction · 0.85
NumberTypeAlias · 0.85
DelimTypeAlias · 0.85
UnreadBufferMethod · 0.80
FloatMethod · 0.80
KindMethod · 0.65
ReadTokenMethod · 0.45
StringMethod · 0.45

Tested by 6

FuzzDecoderTokenFunction · 0.76
TestDecodeInStreamFunction · 0.76
TestTokenErrorFunction · 0.76
TestDecoderInputOffsetFunction · 0.76
ExampleDecoder_TokenFunction · 0.76