这可能对您有帮助。
Java:
JSonArray arr = new JSonArray(result);JSonObject jObj = arr.getJSonObject(0);String date = jObj.getString("NeededString");科特林:
val jsonArray = JSonArray(result)val jsonObject: JSonObject = jsonArray.getJSonObject(0)val date= jsonObject.get("NeededString")- getJSONObject(index)。在上面的示例中,0表示索引。



