Package com.jayway.jsonpath.internal

Examples of com.jayway.jsonpath.internal.JsonReader


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


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

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

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

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

     *
     * @param json input
     * @return a read context
     */
    public static DocumentContext parse(URL json, Configuration configuration) throws IOException {
        return new JsonReader(configuration).parse(json);
    }
View Full Code Here

     * @return a new JsonModel
     */
    public static JsonModel model(JsonProvider jsonProvider, String json) {
        notNull(jsonProvider, "jsonProvider can not be null");
        notNull(json, "jsonObject can not be null");
        return new JsonModel(new JsonReader(jsonProvider).parse(json).json(), Configuration.builder().jsonProvider(jsonProvider).build());
    }
View Full Code Here

     */
    public static JsonModel model(JsonProvider jsonProvider, URL url) throws IOException {
        notNull(jsonProvider, "jsonProvider can not be null");
        notNull(url, "url can not be null");

        return new JsonModel(new JsonReader(jsonProvider).parse(url).json(), Configuration.builder().jsonProvider(jsonProvider).build());
    }
View Full Code Here

     */
    public static JsonModel model(JsonProvider jsonProvider, InputStream jsonInputStream) throws IOException {
        notNull(jsonProvider, "jsonProvider can not be null");
        notNull(jsonInputStream, "jsonInputStream can not be null");

        return new JsonModel(new JsonReader(jsonProvider).parse(jsonInputStream).json(), Configuration.builder().jsonProvider(jsonProvider).build());
    }
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(String json, String jsonPath, Filter... filters) {
        return new JsonReader().parse(json).read(jsonPath, filters);
    }
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.