code: private boolean isTrue(JSONObject obj, String property) {
  
          JSONValue val = obj.get(property);
          if (val == null) {
              return false;
          }
          boolean stringTrue = ((val.isString() != null) && Boolean.parseBoolean(val.isString().stringValue()));
          boolean boolTrue = ((val.isBoolean() != null) && val.isBoolean().booleanValue());
          return stringTrue || boolTrue;
      }
docs: Checks if a property in a JSON object is either the boolean value 'true' or a string representation of that value.<p>
  
  @param obj the JSON object
  @param property the property name
  @return true if the value represents the boolean 'true'