I would be guessing that's because the response is actually thus an array (square brackets around anything mean a list of same-typed fields without keys) and you need to thus use response[0] to get it if there is only one, or process it in a for loop iterating using range. Probably you could also strip the brackets using strings.Split() and grab field 1 of split with '[' and field 0 of split with ']'
On Wednesday, 12 December 2018 18:30:43 UTC+1, Olivier GALEOTE wrote: > > Hi > > Thank you, but i have no response with your example. > Maybe because i have [] around the json ? -- 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.