[Solved] Android JSON Parse Getting Array within Array


claim is not an array, but another object. If you want it to be an array, it should be something like this:

    "claim": [
        "date": "2015-08-06",
        "comments": "Some comments"
    ]

(notice the [ ] instead of { })

If it’s meant to be an object, then the code should read:

            JSONObject claims = c.getJSONObject(TAG_CLAIM);

4

solved Android JSON Parse Getting Array within Array