0

I have a json object in the following format in Java and I am not sure how to parse it?

{"status":0,
       "info":
       {"masterUuid":"12312312","X":"Y"}
}
user1658435
  • 574
  • 1
  • 9
  • 28
Nav Nav
  • 169
  • 1
  • 20
  • 1
    please refer to the following post:http://stackoverflow.com/questions/5015844/parsing-json-object-in-java – user1658435 May 05 '15 at 18:45
  • I am not using json array for the second parameter. It's just a nested jsonobject. What can I do about that? – Nav Nav May 05 '15 at 19:13
  • try to do something like this : "JSONArray array = (JSONArray)obj;" and then do the get on it like "array.get(1);" – user1658435 May 05 '15 at 19:57
  • how about if I have a string in this format and I want to parse? {"status":0,"x":"Y"}... assume this is what I am getting from the server side. – Nav Nav May 06 '15 at 12:57

0 Answers0