JSON 对象文本必须以“{”开头,位于 1 [字符 2 行 1] 处,并显示“{”错误
String JSON = "http://www.json-generator.com/j/cglqaRcMSW?indent=4";
JSONObject jsonObject = new JSONObject(JSON);
JSONObject getSth = jsonObject.getJSONObject("get");
Object level = getSth.get("2");
System.out.println(level);
我推荐了许多解析此链接的解决方案,但仍然遇到同样的错误。任何人都可以给我一个简单的解决方案来解析它。