은 JSON 결과는 중복 키를 가지고 있으며, 따라서 그것은 JSONException는 생산 .. 등 키 "별명을"중복해결 JSONException의 중복 키
JAVA를 사용 중입니다.
String str=//contains the query result in json format
JSONObject ob=new JSONObject(str) produces the exception
이 예외를 해결하는 방법을 알고 있습니까? 여기
는 JSON 응답입니다 : 여기{
"kind": "customsearch#result",
"title": "The World Factbook: India - CIA - The World Factbook",
"htmlTitle": "The World Factbook: \u003cb\u003eIndia\u003c/b\u003e -",
"link": "https://www.cia.gov/library/publications/the-world-factbook/geos/in.html",
"displayLink": "www.cia.gov",
"snippet": "Jan 20, 2011 ... Features a map and brief descriptions of geography",
"htmlSnippet": "Jan 20, 2011 \u003",
"cacheid": "0n2U45w_dvkJ",
"pagemap": {
"metatags": [
{
"il.secur.classif": "UNCLASSIFIED",
"il.title": "(U) CIA The World Factbook",
"il.summary": "CIA - The World Factbook",
"il.cutdate": "20040101",
"il.secur.classif": "UNCLASSIFIED",
"il.title": "(U) CIA The World Factbook",
"il.cutdate": "20040101",
"il.secur.classif": "UNCLASSIFIED",
"il.pubdate": "20040101",
"il.postdate": "20040501",
"il.cutdate": "20040101"
}
]
}
}
il.secur.classif 여러 번
'il.secur.classif','il.title','il.cutdate'는 다음과 같습니다. 되풀이했다. JSON이 잘못되었습니다! – Nishant