tv42 / jsonarray

Streaming decoder for JSON arrays
MIT License
37 stars 1 forks source link

Alternative in Go 1.5 #1

Open brightcode opened 8 years ago

brightcode commented 8 years ago

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.

tv42 commented 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.