You should operate type assertion by iterating on the array.
My advice is to write a "Work" struct with all the field you need, and create an instance for each iteration of the outer array. This way you'll have a nice representation of a "Work" package for each inner array. I cannot provide an example right now but by reading the docs this should be trivial. On Wed, Oct 11, 2017 at 9:02 AM +0200, "Christian LeMoussel" <cnh...@gmail.com> wrote: Ok but how can I acces four values? I do this segments = []byte("[[\"19c87d4ddf59160406821ca102aa4f49846ecf5ac3d41d2007883834\", 75, \"b54317cb538c6b3a5ae8b84f8b53c83652037038ad8ad6bef4c8b43a\", 101]]") var workPack [][]interface{} err = json.Unmarshal(segments, &workPack) checkError(err) -- 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. -- 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.