The key issue here is that "blocks"
isn’t a JSONArray or a JSONObject – it is a key:value pair from inside a JSONObject.
Check out the diagram here and look for the :
to see why:
https://www.json.org/json-en.html
That is why you need to add {
}
as @Chrisir says to make it a valid object.