您应该能够使用org.json包进行解码。从这里:
String json = "{" + " "query": "Pizza", " + " "locations": [ 94043, 90210 ] " + "}"; JSonObject object = (JSONObject) new JSonTokener(json).nextValue(); String query = object.getString("query"); JSonArray locations = object.getJSonArray("locations");只需使用自己的JSON即可。



