Interface SpinJsonPathQuery

  • All Known Implementing Classes:
    JacksonJsonPathQuery

    public interface SpinJsonPathQuery
    Author:
    Stefan Hentschel
    • Method Detail

      • 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.
      • stringValue

        java.lang.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

        java.lang.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

        java.lang.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.