Re: [go-nuts] Problems to create the JSON structure dynamically

2016-09-08 Thread Shawn Milochik
Hi Jens. I hope this helps. Let me know if you have any questions. https://play.golang.org/p/Z39q1BAFFb -- 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-n

[go-nuts] Problems to create the JSON structure dynamically

2016-09-08 Thread Jens Ramhorst
Hello, I'm unable o create dynamically the given JSON structure. I need the following JSON structure for a linechart with two timeseries: [ [{ "time": 141004800, "val": 2182257289.448362 }, { "time": 141013440, "val": 1693164286.4698827 }, { "time": 141022080, "val": 0 }], [{ "time":