I have a data in this format.
{"responseData": {"results":[{"GsearchResultClass":"GwebSearch",.......}],"cursor":{"resultCount":"16,900,000","pages":[........
I have put the full text into this first.
JSONObject fullResult = new JSONObject(text);//text represents my data.
JSONObject responseData1 = fullResult.JSONObject("responseData");
here I keep getting this "error: method getJSONObject in class JSONObject cannot be applied to given types;".
I need to extract just the value of resultCount. I keep getting stucked here.