You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think using something like the syntax below would make doing the decoding process a lot easier without the need of a custom unmarshaler or using any external packages and would be a life saver when you have big JSON strings with dozens of nested data.
rramiachraf
changed the title
proposal: encoding/json: using jq syntax to unmarshal/marshall json tk
proposal: encoding/json: using jq syntax to unmarshal/marshall json
Jan 2, 2022
rramiachraf
changed the title
proposal: encoding/json: using jq syntax to unmarshal/marshall json
proposal: encoding/json: using jq syntax to unmarshal/marshall JSON
Jan 2, 2022
rramiachraf
changed the title
proposal: encoding/json: using jq syntax to unmarshal/marshall JSON
proposal: encoding/json: using inspired jq syntax to unmarshal/marshall JSON
Jan 2, 2022
Why does this need to be part of the standard library? Couldn't this syntax be implemented in a third party package? See https://go.dev/doc/faq#x_in_std.
Let's imagine we have this JSON:
And a developer wants to unmarshal it into this struct:
I think using something like the syntax below would make doing the decoding process a lot easier without the need of a custom unmarshaler or using any external packages and would be a life saver when you have big JSON strings with dozens of nested data.
The text was updated successfully, but these errors were encountered: