Package com.jayway.jsonpath.internal.filter

Examples of com.jayway.jsonpath.internal.filter.PathTokenFilter


        Object result = jsonObject;

        boolean inArrayContext = false;

        for (PathToken pathToken : tokenizer) {
            PathTokenFilter filter = pathToken.getFilter();

            if(LOG.isDebugEnabled()){
                LOG.debug("Applying filter: " + filter  + " to " + result);
            }

            result = filter.filter(result, configuration, contextFilters, inArrayContext);

            if(result == null && !pathToken.isEndToken()){
                throw new PathNotFoundException("Path token: '" + pathToken.getFragment() + "' not found.");
            }

            if (!inArrayContext) {
                inArrayContext = filter.isArrayFilter();
            }
        }
        return (T) result;
    }
View Full Code Here

TOP

Related Classes of com.jayway.jsonpath.internal.filter.PathTokenFilter

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.