resolve JSONException duplicate keys
i am using google custom search engine and getting the results in JSON format.for certain queries,the JSON result has duplicate keys and hence it produces a JSONException: Duplicate key "nickname" etc.. i am using JAVA. String str=//contains the query result in json format JSONObject ob=new JSONObject(str) produces the exception may know how to resolve this exception? here is the JSON reply: { "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