Class JSONObject


  • public class JSONObject
    extends Object
    JSONObject
    • Constructor Detail

      • JSONObject

        public JSONObject()
    • Method Detail

      • getPaths

        public List<JSONPath> getPaths()
        Get paths
        Returns:
        paths
      • getRootPath

        public JSONPath getRootPath()
        Get rootPath
        Returns:
        rootPath
      • setRootPath

        public void setRootPath​(JSONPath rootPath)
      • equals

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

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

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

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