Java Convierte esta cadena a JSONArray [cerrado]
Estoy recibiendo lo siguienteString
Respuesta de un servidor:
{"fid":"1272","uri":"http://someurl/services/file/1272"}
Necesito convertirlo en unJSONArray
. ¿Alguna ayuda?
Por cierto, he intentado esto y no funciona:
String response=getResponseFromServer();
JSONArray array = new JSONArray(response);
Me sale el error:
org.json.JSONException: Value {"fid":"1272","uri":"http://someurl/services/file/1272"} of type org.json.JSONObject cannot be converted to JSONArray