private static JSONValue parse(String jsonString, boolean strict) { if (jsonString == null) { throw new NullPointerException(); } if (jsonString.length() == 0) { throw new IllegalArgumentException("empty argument"); } try { return evaluate(jsonString, strict); } catch (JavaScriptException ex) { throw new JSONException(ex); } }
private static JSONValue parse(String jsonString, boolean strict) { if (jsonString == null) { throw new NullPointerException(); } if (jsonString.length() == 0) { throw new IllegalArgumentException("empty argument"); } try { return evaluate(jsonString, strict); } catch (JavaScriptException ex) { throw new JSONException(ex); } }