this is my json string for example :
{"data":{ "name":"Red Sox win 7-0!","famil":"INSERT TITLE HERE","tel":"2251472"}}
this is the code I write but it couldn't get the values:
JSONObject jsons = new JSONObject(myString);
Iterator<?> keys = jsons.keys();
String out = "";
while (keys.hasNext()) {
String key = (String) keys.next();
out += key + ": " + jsons.getString(key) + "\n";
}
How can I get each item's value ?