I don't know how to use JSON parser from web
first, In my website only text
{"name":"hellohello", "age":"19","address":"123123123","phone":"00000"}
and I know use JSON parser
on android
TextView textmessage;
String mStrJson;
public void onParser() {
String strData ="";
try {
JSONArray json = new JSONArray(mStr);
for(int i=0; i < json.length(); i++) {
JSONObject object = json.getJSONObject(i);
strData += object.getString("name") + " - " + "\n" + object.getInt("age") + "\n";
}
} catch (JSONException e) {
Log.d("tag", "parse error");
}
textmessage.setText(strData);
}
but I don't know how to get web page text?
please advice for me thanks.