Class JsonNode

    • Field Detail

      • m_Value

        protected Object m_Value
        the value.
    • Constructor Detail

      • JsonNode

        public JsonNode​(String label,
                        Object value)
        Initializes the node with the specified label.
        Parameters:
        label - the label for this node
        value - the JSON object to attach, can be null
    • Method Detail

      • getLabel

        public String getLabel()
        Returns the label for this node.
        Returns:
        the label
      • hasValue

        public boolean hasValue()
        Checks whether there is any JSON object attached.
        Returns:
        true if a value is attached
      • getValue

        public Object getValue()
        Returns the value for this node.
        Returns:
        the value