1

how to get json in android?

view story
linux-howto

http://stackoverflow.com – First question. php echos json data like this echo(json_encode($thing)); then how can i get this json data in android?? do i have to use JSONArray, JSONObject? Second question. if php echos String data, then how can i convert this String data to JSON data? i tried httpPost in android using asynctask and it gets the String data from php. String get_url = null; // TODO Auto-generated method stub get_url = sendData("music", "http://www.test.com/test.php"); private String sendData(String name, String url) throws ClientProtocolException, IOException { (HowTos)