Get a JSON object from a HTTP response

前端 未结 7 1341
粉色の甜心
粉色の甜心 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 13:04

    There is a JSONObject constructor to turn a String into a JSONObject:

    http://developer.android.com/reference/org/json/JSONObject.html#JSONObject(java.lang.String)

    0 讨论(0)
提交回复
热议问题