1) JSON ファイルを取得しました。
{
"serverURI":"http://localhost:8080/PocketUNI_API/serverURLs",
"newsURI":"http://localhost:8080/gateway/rss/rss.xml",
"modulesURI":"http://localhost:8080/PocketUNI_API/modules"
}
2) Java クライアントで文字列形式の URL を取得する必要があります。
String json = jsonReceiver.makeHttpRequest(URL_SERVER, "GET", params);
JSONArray uris = new JSONArray(json);
レシーバーは正常に動作し、json は受信した正しい文字列を表示しますが、JSONArray で解析するとエラーがスローされます
org.json.JSONException: Value {"serverURI":"http:\/\/192.168.0.... of type org.json.JSONObject cannot be converted to JSONArray.
質問: URL 値で json を解析する方法を教えてください。