4 ms·
> There is no easy way to sort of "parse" json piece by piece You mean like this? http://play.golang.org/p/mMh7HGuTbe http://play.golang.org/p/mMh7HGuTbe
by landr0id 12y ago
> There is no easy way to sort of "parse" json piece by piece
You mean like this? http://play.golang.org/p/mMh7HGuTbe http://play.golang.org/p/mMh7HGuTbe
- anonfunction 12y agoYou're still parsing the entire JSON document at once. I believe what OP meant was getting a nested property without all the overhead of writing structs or parsing the entire JSON object into an interface{}, []string, map or whatever else is appropriate.
- BarkMore 12y agoThe jason package implementation decodes the entire JSON object to an interface{} using the standard encoding/json package.