Package com.jayway.jsonpath.internal

Examples of com.jayway.jsonpath.internal.JsonReader


     * @param <T>      expected return type
     * @return list of objects matched by the given path
     */
    @SuppressWarnings({"unchecked"})
    public static <T> T read(String json, String jsonPath, Predicate... filters) {
        return new JsonReader().parse(json).read(jsonPath, filters);
    }
View Full Code Here


     * @param <T>      expected return type
     * @return list of objects matched by the given path
     */
    @SuppressWarnings({"unchecked"})
    public static <T> T read(URL jsonURL, String jsonPath, Predicate... filters) throws IOException {
        return new JsonReader().parse(jsonURL).read(jsonPath, filters);
    }
View Full Code Here

     * @param <T>      expected return type
     * @return list of objects matched by the given path
     */
    @SuppressWarnings({"unchecked"})
    public static <T> T read(File jsonFile, String jsonPath, Predicate... filters) throws IOException {
        return new JsonReader().parse(jsonFile).read(jsonPath, filters);
    }
View Full Code Here

     * @param <T>             expected return type
     * @return list of objects matched by the given path
     */
    @SuppressWarnings({"unchecked"})
    public static <T> T read(InputStream jsonInputStream, String jsonPath, Predicate... filters) throws IOException {
        return new JsonReader().parse(jsonInputStream).read(jsonPath, filters);
    }
View Full Code Here

     *
     * @param configuration configuration to use when parsing JSON
     * @return a parsing context based on given configuration
     */
    public static ParseContext using(Configuration configuration) {
        return new JsonReader(configuration);
    }
View Full Code Here

     *
     * @param provider jsonProvider to use when parsing JSON
     * @return a parsing context based on given jsonProvider
     */
    public static ParseContext using(JsonProvider provider) {
        return new JsonReader(Configuration.builder().jsonProvider(provider).build());
    }
View Full Code Here

     *
     * @param json input
     * @return a read context
     */
    public static DocumentContext parse(Object json) {
        return new JsonReader().parse(json);
    }
View Full Code Here

     *
     * @param json string
     * @return a read context
     */
    public static DocumentContext parse(String json) {
        return new JsonReader().parse(json);
    }
View Full Code Here

     *
     * @param json stream
     * @return a read context
     */
    public static DocumentContext parse(InputStream json) {
        return new JsonReader().parse(json);
    }
View Full Code Here

     *
     * @param json file
     * @return a read context
     */
    public static DocumentContext parse(File json) throws IOException {
        return new JsonReader().parse(json);
    }
View Full Code Here

TOP

Related Classes of com.jayway.jsonpath.internal.JsonReader

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.