Package com.bazaarvoice.commons.data.model.json

Examples of com.bazaarvoice.commons.data.model.json.GenericJSONObjectMap


    @Override
    public void validate(JSONSchema schema, Object obj, String path, ValidationResults results) {
        Map<String, Object> map = null;
        if (obj instanceof JSONObject) {
            map = new GenericJSONObjectMap((JSONObject) obj);
        } else if (obj instanceof Map) {
            //noinspection unchecked
            map = (Map<String,Object>) obj;
        }
View Full Code Here


    @Override
    public void validate(JSONSchema schema, Object obj, String path, ValidationResults results) {
        Map<String, Object> map;
        if (obj instanceof JSONObject) {
            map = new GenericJSONObjectMap((JSONObject) obj);
        } else {
            //noinspection unchecked
            map = (Map<String,Object>) obj;
        }
View Full Code Here

    protected static List<JSONObject> convertJSONArrayToJSONObjectList(@Nullable JSONArray jsonArray) {
        return new JSONObjectJSONArrayList(jsonArray);
    }

    protected static Map<String, Object> convertJSONObjectToMap(@Nullable final JSONObject jsonObject) {
        return new GenericJSONObjectMap(jsonObject);
    }
View Full Code Here

TOP

Related Classes of com.bazaarvoice.commons.data.model.json.GenericJSONObjectMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.