I need to send an Array inside a JSON object with the structure:
{"extent":[-76.0624694824, 36.8856620774, -75.9800720215,36.9449529607]}
How would I do this? I can't use the typical:
var jsonprep string = `{"extent":` + []float32{-76.0624694824, 36.8856620774, -75.9800720215, 36.9449529607} + `}`
var jsonStr = []byte(jsonprep)
because of the type mismatch. I am trying to send this to a server that expects it to be an array as I get the error,
The request content was malformed:
Expected List as JsArray, but got "[-76.0624694824, 36.8856620774, -75.9800720215,36.9449529607]"