class JavaxJson {

    @SuppressWarnings("WeakerAccess")
    public static Object unwrap(final JsonValue jsonValue) {
        if (jsonValue == null) {
            return null;
        } else {
            switch (jsonValue.getValueType()) {
                case STRING:
                    return ((JsonString) jsonValue).getString();
                case NUMBER:
                    return ((JsonNumber) jsonValue).numberValue();
                case NULL:
                    return null;
                case ARRAY:
                    return unwrapArray(jsonValue.asJsonArray());
                case OBJECT:
                    return unwrapObject(jsonValue.asJsonObject());
                default:
                    return jsonValue == JsonValue.TRUE;
            }
        }
    }

    private  JavaxJson();

}