Get a JSON object from a HTTP response

前端 未结 7 1415
粉色の甜心
粉色の甜心 2020-11-27 12:17

I want to get a JSON object from a Http get response:

Here is my current code for the Http get:

protected String doInBackground(String..         


        
7条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-27 12:49

    Do this to get the JSON

    String json = EntityUtils.toString(response.getEntity());
    

    More details here : get json from HttpResponse

提交回复
热议问题