Open brightcode opened 8 years ago
It's not the Decode
that helps, it's the Token
, but yes. The internals of this library could be simplified with Token
. The API here is still valid -- note how the stdlib example does no verification of what tokens it reads, it's just a simple example.
Your library is very useful for decoding large JSON arrays. But in Go 1.5 there is an alternative with new additions to the JSON decoder. See the Decoder.Decode (Stream) example.