Why is following statement is legal ? Shouldn't it be a parsing error (JSONException) ? JSONObject obj = new JSONObject("{}whateverishere") ; System.out.println(obj); This is a valid statement and print on '{}' ?
Why is following statement is legal ? Shouldn't it be a parsing error (JSONException) ?
JSONObject obj = new JSONObject("{}whateverishere") ;
System.out.println(obj);
This is a valid statement and print on '{}' ?