Try this. It's great.
https://mholt.github.io/json-to-go/
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more opti
You also have to name the fields using struct tags to match the actual json
field names.
On Sun, Oct 30, 2016, 12:28 Pietro Gagliardi wrote:
> You need to export the fields of tData in order for encoding/json to see
> them.
>
> On Oct 30, 2016, at 6:01 AM, MaReK Olšavský
> wrote:
>
> Hello,
> m
You need to export the fields of tData in order for encoding/json to see them.
> On Oct 30, 2016, at 6:01 AM, MaReK Olšavský wrote:
>
> Hello,
> maybe i'm bad understand to json.Unmarshal and slices.
> I've data in json:
> vals :=
> `[{"time":"20160902","value":572736},{"time":"20160903","value
Hello,
maybe i'm bad understand to json.Unmarshal and slices.
I've data in json:
vals :=
`[{"time":"20160902","value":572736},{"time":"20160903","value":567616},{"time":"20160904","value":554560},{"time":"20160905","value":565600},{"time":"20160906","value":554752},{"time":"20160907","value":5557