Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
public JsonParser(String string_Url) { java.net.URL url = new java.net.URL(string_Url); java.net.URLConnection conn = (java.net.URLConnection) url .openConnection(); conn.setDoOutput(true); conn.setDoInput(true); String line = Developer .convertStreamToString(conn.getInputStream()); Log.d("RES IS ", line); final JSONObject json = new JSONObject(line); checkForJSONObject(json); } /** * This is recursive function used for getting key value pair from array or * object In this nameArray gives field names & valArray gives contents * */ private void checkForJSONObject(JSONObject jsonObject) { try { JSONArray nameArray = jsonObject.names(); JSONArray valArray = jsonObject.toJSONArray(nameArray); for (int i = 0; i < jsonObject.length(); i++) { // whenever there is array then control comes here if (valArray.get(i).getClass().isInstance(new JSONArray())) { JSONArray arr = jsonObject.getJSONArray(nameArray.get(i) .toString()); for (int j = 0; j < arr.length(); j++) { if (nameArray.get(i).equals("Response")) { int_responseCount++; System.out.println("**************************** "+int_responseCount); } Object oo = arr.get(j); if (oo.getClass().isInstance(new JSONArray())) { System.out.println("IS ARRAY " + arr.get(j)); } else if (oo.getClass().isInstance(new JSONObject())) { checkForJSONObject((JSONObject) oo); } else { System.out.println("name " + nameArray.get(i).toString() + " con " + arr.get(j).toString()); } } } else if (valArray.get(i).getClass().isInstance( new JSONObject())) { checkForJSONObject((JSONObject) valArray.get(i)); } else { System.out.println(" NAME " + nameArray.get(i) + " CONTENT " + valArray.get(i)); } } } catch (Exception e) { System.out.println("Ex in checkForJsonObj " + e.toString()); e.printStackTrace(); } }