I think a JSONArray is not a json-object as the other objects, because a JSONArray is not a legal json itself. so maybe it would be better to make another function returns a JSONObject consisting of one key-value-pair ("statements" : [...]).