Introduce proper conversion of json arrays

Go unmarshals them into []interface{}, and there is no easy way to convert them
into anything useful, one has to loop over the array and convert individual
elements :(