{"name":"zet", "HP":1000, "MP":2000 } --> THIS IS MY JSON COLLECTION
I want to get data value use key like "name " and get value "zet" or use key "HP" and get 1000
how can i access jsonDocList.get(i).getJsonDoc() use key value?
i found function like -> String strName = jsonDocList.get(i).getJsonDoc().getkey("zet");
ArrayList<Storage.JSONDocument> jsonDocList = storage.getJsonDocList();
for(int i=0;i<jsonDocList.size();i++)
{
strSWORDObjUID = jsonDocList.get(i).getDocId();
System.out.println("ParseMyHero jsonSwordHero objectId is " + jsonDocList.get(i).getDocId());
System.out.println("ParseMyHero jsonSwordHero CreatedAt is " + jsonDocList.get(i).getCreatedAt());
System.out.println("ParseMyHero jsonSwordHero UpdatedAtis " + jsonDocList.get(i).getUpdatedAt());
System.out.println("ParseMyHero jsonSwordHero Jsondoc is " + jsonDocList.get(i).getJsonDoc());
}