I have a very complicated String which looks like below,
"data":"[
{
"id": "123456",
"from":
{
"name": "ABC",
"id": "123"
},
"message": "isafh",
"story": "Best Story",
"properties":
[
{
"name": "By",
"text": "PROUD TO BE AN INDIAN",
"href": "www.xyz.com"
}
],
"privacy":
{
"value": ""
},
"type": "photo",
"created_time": "2013-10-24T07:17:28+0000",
"updated_time": "2013-10-24T07:17:28+0000"
},
{
"id": "122423456",
"from":
{
"name": "ABCaasd",
"id": "124233"
},
"message": "isafh",
"story": "Best nice Story",
"properties":
[
{
"name": "By",
"text": "PROUD TO BE AN INDIAN",
"href": "www.abc.com"
}
],
"privacy":
{
"value": ""
},
"type": "photo",
"created_time": "2013-10-24T07:17:28+0000",
},
{
Similar data as above {... }
},
]"
"next token":"1233"
Here all the JSON data is in the these brackets "[ ]" which are separated by the "{ ... }," braces.Here i want a the message,story and properties from all the curly braces. tried two things one is two put again everything in a JSON object and also tried a useless attempt to match the regex "message:" but even that didn't work.
What is the way to find the message,story and properties from all the braces.