JSON看起来像:
{
"cover":"blabla.jpg",
"content":[
{
"article":"article_text",
"document":"document_text"
}
]
}我知道怎么让"cover"
JSONObject json = new JsonObject(jsonStr);
json.get("cover");但是如何通过"article"密钥获取值呢?
发布于 2016-04-23 23:54:13
您可以尝试如下所示:
yourJSonObject.getJSONObject("cover").getJSONObject("content").getJSONObject("article");https://stackoverflow.com/questions/36812881
复制相似问题