src/main/java/com/github/wnameless/json/base/JsonValueUtils.java
public static Object toObject(JsonValueBase<?> jsonValue) {
    if (jsonValue.isNull()) return jsonValue.asNull();
    if (jsonValue.isBoolean()) return jsonValue.asBoolean();
    if (jsonValue.isString()) return jsonValue.asString();
    if (jsonValue.isNumber()) return jsonValue.asNumber();
    if (jsonValue.isArray()) return toList(jsonValue.asArray());
    if (jsonValue.isObject()) return toMap(jsonValue.asObject());
    throw new IllegalStateException();
  }
/**
   * Creates a Java {@link Object} from given {@link JsonValueBase}.
   * 
   * @param jsonValue
   *          a {@link JsonValueBase}
   * @return an {@link Object} corresponds to JSON value
   * @throws IllegalStateException
   *           if given {@link JsonValueBase} is not represented as any JSON
   *           value
   */
Creates a Java  Object from given  JsonValueBase.

@param jsonValue
a  JsonValueBase
@return an  Object corresponds to JSON value
@throws IllegalStateException
if given  JsonValueBase is not represented as any JSON
value
Creates a Java Object from given JsonValueBase . @param jsonValue a JsonValueBase @return an Object corresponds to JSON value @throws IllegalStateException if given JsonValueBase is not represented as any JSON value
public static Object toObject(JsonValueBase<?> jsonValue) {
    if (jsonValue.isNull()) return jsonValue.asNull();
    if (jsonValue.isBoolean()) return jsonValue.asBoolean();
    if (jsonValue.isString()) return jsonValue.asString();
    if (jsonValue.isNumber()) return jsonValue.asNumber();
    if (jsonValue.isArray()) return toList(jsonValue.asArray());
    if (jsonValue.isObject()) return toMap(jsonValue.asObject());
    throw new IllegalStateException();
  }
public static Object toObject ( JsonValueBase < ? > jsonValue ) { if ( jsonValue . isNull ( ) ) return jsonValue . asNull ( ) ; if ( jsonValue . isBoolean ( ) ) return jsonValue . asBoolean ( ) ; if ( jsonValue . isString ( ) ) return jsonValue . asString ( ) ; if ( jsonValue . isNumber ( ) ) return jsonValue . asNumber ( ) ; if ( jsonValue . isArray ( ) ) return toList ( jsonValue . asArray ( ) ) ; if ( jsonValue . isObject ( ) ) return toMap ( jsonValue . asObject ( ) ) ; throw new IllegalStateException ( ) ; }
Creates a Java {@link Object} from given {@link JsonValueBase}.
Creates a Java { @link Object } from given { @link JsonValueBase } .