我的代码是基于关于AndroidBasic的udacity课程。这是我的代码: * Sample JSON response for a USGS query privatestatic final String SAMPLE_JSON_RESPONSE = "{\"type\":\"FeatureCollection\",\"metadata\":{
我的问题是,当我浏览到服务URL时,我看到了“键值”对,但我没有看到数组或对象的名称,我需要这个名称,因为我想将该服务用于android。看起来是这样的:
我的代码如下所示:[AcceptVerbs("GET", "POST")]
public List<BuzzMonitor.Web.MessageGlobalConfiguration.Configuration.Formatters.JsonFormatter.Supported
}, "name":"Jane Doe"]return new JSONArray(jsonString);org.json.JSONException: Value jsonString of type java.lang.String cannot be converted to JSONArray知道解析器为什么不接受字符串吗?该数组在<