Class JSONPath


  • public class JSONPath
    extends Object
    JSONPath
    • Constructor Detail

      • JSONPath

        public JSONPath()
    • Method Detail

      • addContentItem

        public JSONPath addContentItem​(String contentItem)
      • getContent

        public List<String> getContent()
        Get content
        Returns:
        content
      • setContent

        public void setContent​(List<String> content)
      • equals

        public boolean equals​(Object o)
        Return true if this JSONPath object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static JSONPath fromJson​(String jsonString)
                                 throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of JSONPath given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of JSONPath
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to JSONPath
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of JSONPath to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException