325326327328329330331332
if (boolVal != null) { checkbox.setValue(boolVal.booleanValue()); } else if (stringVal != null) { checkbox.setValue(Boolean.parseBoolean(stringVal.stringValue())); } else { throw new JSONException("Not a valid JSON boolean: " + value.toString()); } }
159160161162163164165166167
JSONValue k; try { k = JSONParser.parseStrict(key); } catch (JSONException e) { throw new JSONException("Input: " + key, e); } return fromJsonObject(em, k.isObject(), failIfNotFound); }
8788899091929394
JSONValue value = selectImpl(json.getJavaScriptObject(), path); return value != null ? value : JSONNull.getInstance(); } catch (JavaScriptException e) { throw new JSONException(e); } }