Re: [go-nuts] Re: Marshaling to JSON and dynamically choosing fields

2019-06-02 Thread David Riley
There are other JSON packages (jsoniter, gojay come to mind) which may do more of what you want. The standard library's JSON package is fine for simple things, but because it relies on struct tagging, it's not terribly well suited for situations where you want to separate the serialized represe

Re: [go-nuts] Re: Marshaling to JSON and dynamically choosing fields

2019-06-01 Thread hieuht817
Have you solved this? On Monday, December 17, 2012 at 9:03:50 AM UTC+7, Boris wrote: > > On Sun, Dec 16, 2012 at 5:45 PM, Dustin Sallings > wrote: > >> Boris > writes: >> >> > I have JSON web API that accepts fields URL parameter, like this: >> > >> > GET /something/?fields=a,b,c >> > >> > This i