Seems to lack Encoding functionality.
On Tuesday, December 20, 2016 at 1:39:14 PM UTC-7, ma...@influxdb.com wrote:
>
> https://github.com/json-iterator/go was recently trending on GitHub.
>
> I haven't used it personally but it sounds like it might fit your use case.
>
> On Tuesday, December 20, 2
https://github.com/json-iterator/go was recently trending on GitHub.
I haven't used it personally but it sounds like it might fit your use case.
On Tuesday, December 20, 2016 at 11:43:53 AM UTC-8, Alexander Petrovsky
wrote:
>
> Yep, I can, and I've already reads this article, but as I said, I ne
Yep, I can, and I've already reads this article, but as I said, I need to
unmarshal only part of the big body json with many dynamic fields. And I don't
know and don't need all fields to unmarshal, only few. So, something like
stream json parsers, which efficiently emit key and value, by example
You can write a custom JSON marshaller for your type. One example:
http://choly.ca/post/go-json-marshalling/
https://golang.org/pkg/encoding/json/#Unmarshaler
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and
Hi!
Thanks for the help, but I've try this, and unfortunately this is doesn't work
for the big body dynamic json with more the 10 field
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails fro
Don't know how to make 'X' simple, but you can use a strategy
like https://play.golang.org/p/1bdlbFWjwg which at least minimizes
allocations by only Unmarshal'ing the k:v pairs of interest.
On Tuesday, December 20, 2016 at 8:48:03 AM UTC-7, Alexander Petrovsky
wrote:
>
> Hello!
>
> By example I
Don't know how to make 'X' simple, but you can use a strategy like
https://play.golang.org/p/n4ms3hNGgy which at least minimizes allocations
by only Unmarshal'ing the k:v pairs of interest.
On Tuesday, December 20, 2016 at 8:48:03 AM UTC-7, Alexander Petrovsky
wrote:
>
> Hello!
>
> By example I