Class JSONPointer

java.lang.Object
dev.iahmadgad.json.JSONPointer

public class JSONPointer extends Object
JSONPointer Class.

JSONPointer is a pointer that points to some value in JSONObject or JSONArray.

Since:
0.3
  • Constructor Details

    • JSONPointer

      public JSONPointer(JSONArray node, String path)
      The main Constructor that assigns JSONPointer's path and node.
      Parameters:
      node -
      path -
    • JSONPointer

      public JSONPointer(JSONObject node, String path)
      The main Constructor that assigns JSONPointer's path and node.
      Parameters:
      node -
      path -
    • JSONPointer

      public JSONPointer(String path)
      The main Constructor that assigns JSONPointer's path.
      Parameters:
      path -
  • Method Details

    • setNode

      protected void setNode(JSONArray node)
      Sets the main node (JSONObject) of the JSONPointer.
      Parameters:
      node -
    • setNode

      protected void setNode(JSONObject node)
      Sets the main node (JSONArray) of the JSONPointer.
      Parameters:
      node -
    • getPointee

      protected Object getPointee()
      Gets the pointee (object) stored in this JSONPointer.
      Returns: