I want to analyze the json structure as follows:
{"response": { "arr1":[count,{...}], "arr2":[count,{...}] } }
Everything is fine if the counter has an account key (for example). But the key is empty. How can I match this structure and manually output only this value, or do I need to parse all these json without gson?
UPDATED
Here is a valid json (marked with http://jsonlint.com/ )
{ "response": { "arr1": [ 615, { "body": "hi", "title": "Re(2): ..." }, { "body": "hello", "title": "Re(23): ..." } ], "arr2": [ 132, { "body": "hi", "title": "Re(2): ..." }, { "body": "hello", "title": "Re(23): ..." } ] } }
dilix source share