code: public static boolean getBoolean(JSONValue value) {
          if (value == null)
              return false;
          if (!(value instanceof JSONBoolean))
              throw new JSONException(NOT_A_BOOLEAN);
          return ((JSONBoolean)value).booleanValue();
      }
docs: Get a {@code boolean} from a {@link JSONValue}.  Return {@code false} if the
  {@link JSONValue} is {@code null}.
  
  @param   value   the {@link JSONValue}
  @return  the value as a {@code boolean}
  @throws  JSONException if the value is not a boolean