All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.toomuchcoding.jsonassert.JsonPath Maven / Gradle / Ivy

The newest version!
package com.toomuchcoding.jsonassert;

/**
 * Builder of JSON Paths.
 *
 * @author Marcin Grzejszczak
 * @since 0.3.0
 *
 * @see JsonVerifiable
 * @see JsonAssertion
 */
public class JsonPath {

    /**
     * Returns a builder of {@link JsonVerifiable} with which you can build your
     * JSON Path. Once finished just call {@link JsonVerifiable#jsonPath()} to get
     * JSON Path as String.
     */
    public static JsonVerifiable builder() {
        return JsonAssertion.assertThat("").withoutThrowingException();
    }

    /**
     * Using a JSON Path builder for the given JSON you can read its value.
     */
    public static JsonVerifiable builder(String json) {
        return JsonAssertion.assertThat(json).withoutThrowingException();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy