Re: [go-nuts] decoding various JSON in specific way (according to first JSON name)

2017-03-03 Thread Konstantin Khomoutov
On Thu, 2 Mar 2017 12:25:47 -0800 (PST) Basile Starynkevitch wrote: > This question is related to that one > > (which gives more detailed motivation). > > Assume I have some public type > Person = struct { > PersName: s

[go-nuts] decoding various JSON in specific way (according to first JSON name)

2017-03-02 Thread Basile Starynkevitch
Hello all, This question is related to that one (which gives more detailed motivation). Assume I have some public type Person = struct { PersName: string `json:"name"` PersPhone: int `json:"phone"` } I want to unm