49505152535455565758596061626364
while (true) { if (null == jsonValue) { break; } final JSONBoolean jsonBoolean = jsonValue.isBoolean(); if (null == jsonBoolean) { break; } value = jsonBoolean.booleanValue(); break; } return value; }
69707172737475767778
public static Boolean getJsonBoolean(JSONObject object, String key) { JSONValue value = object.get(key); if(value == null) return null; JSONBoolean b = value.isBoolean(); if( b == null) return null; return new Boolean(b.booleanValue()); }