-3

I've got this JSON in JSON object like this

JSONObject obj = new JSONObject(json);

I now want to get back "TRUE" (control F to find where that is)

{"version":"1.0","encoding":"UTF-8","feed":{"xmlns":"Lorum","xmlns$openSearch":"Ipsum","xmlns$gsx":"Dolor","id":{"$t":"Lorum"},"updated":{"$t":"2016-07-30T07:40:03.369Z"},"category":[{"scheme":"Ipsum","term":"Dolar"}],"title":{"type":"text","$t":"Sheet1"},"link":[{"rel":"alternate","type":"application/atom+xml","href":"Lorum"},{"rel":"Ipsum","type":"application/atom+xml","href":"Dolor"},{"rel":"Lorum","type":"application/atom+xml","href":"Ipsum"},{"rel":"self","type":"application/atom+xml","href":"Dolor"}],"author":[{"name":{"$t":"spark"},"email":{"$t":"Lorum"}}],"openSearch$totalResults":{"$t":"1"},"openSearch$startIndex":{"$t":"1"},"entry":[{"id":{"$t":"Ipsum"},"updated":{"$t":"2016-07-30T07:40:03.369Z"},"category":[{"scheme":"Dolor","term":"Lorum"}],"title":{"type":"text","$t":"Ipsum"},"content":{"type":"text","$t":"parko2: TRUE"},"link":[{"rel":"self","type":"application/atom+xml","href":"Lorum"}],"gsx$parko1":{"$t":"TRUE"},"gsx$parko2":{"$t":"FALSE"},"gsx$indexfilteraanotisblankaarowsfilteraanotisblankaa":{"$t":""}}]}}

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Thomas B
  • 1
  • 1

1 Answers1

0
JSONObject obj = new JSONObject(json);
JSONObject obj1 =obj.getJsonObject("feed");
JsonArray array = obj1.getJsonArray("entry");

You will get array of entry array

Yogesh Rathi
  • 6,331
  • 4
  • 51
  • 81