Sadly this is not a JSON object, it's an array containing an array containing four values. The Go defintion created for you by that tool is the best way to express this data in Go.
On Wednesday, 11 October 2017 17:40:41 UTC+11, Christian LeMoussel wrote: > > > Hi, I'm new to Go, > > I have difficulty to converts JSON into a Go type definition. > > *JSON* > [["19c87d4ddf59160406821ca102aa4f49846ecf5ac3d41d2007883834", 75, > "b54317cb538c6b3a5ae8b84f8b53c83652037038ad8ad6bef4c8b43a", 101]] > > *Go type definition with JSON-to-Go Convert > <https://mholt.github.io/json-to-go/>* > type AutoGenerated [][]interface{} > > Would it be possible to have a structure with > string > int > string > int > > Thank. > -- 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 options, visit https://groups.google.com/d/optout.