Interface SpinJsonPathQuery

All Known Implementing Classes:
JacksonJsonPathQuery

public interface SpinJsonPathQuery
Author:
Stefan Hentschel
  • Method Details

    • element

      SpinJsonNode element()
      Fetches the node from the result of JsonPath.
      Returns:
      SpinJsonNode representation of the found node
      Throws:
      SpinJsonPathException - if node value is not a valid json path expression or the path is not found.
    • elementList

      SpinList<SpinJsonNode> elementList()
      Fetches the list of nodes from the result of JsonPath.
      Returns:
      SpinList list of found nodes
      Throws:
      SpinJsonDataFormatException - if node value is not Array.
    • stringValue

      String stringValue()
      Fetches the string value from the result of JsonPath.
      Returns:
      String value of found node
      Throws:
      SpinJsonDataFormatException - if node value is not String.
    • numberValue

      Number numberValue()
      Fetches the number value from the result of JsonPath.
      Returns:
      Number value of found node
      Throws:
      SpinJsonDataFormatException - if node value is not Number.
    • boolValue

      Boolean boolValue()
      Fetches the boolean value from the result of JsonPath.
      Returns:
      Boolean value of found node
      Throws:
      SpinJsonDataFormatException - if node value is not Boolean.