Class JsonPathCreator


  • @ProviderType
    public final class JsonPathCreator
    extends Object
    Creator for JsonPaths holding the intermediate state of passed elements to create the bread crumb. If a closing element is passed, will return the JSON path with the opening one inside.
    • Constructor Detail

      • JsonPathCreator

        public JsonPathCreator()
    • Method Detail

      • getJsonPathForElement

        public JsonPath getJsonPathForElement​(JsonElement element)
        Adds the given element to the bread crumb and returns the current JSON path.
        Parameters:
        element - Current passed element
        Returns:
        Current JSON path
      • getJsonPath

        public JsonPath getJsonPath()
        Returns:
        Current JSON path