Interface JsonNodeCreator

    • Method Detail

      • booleanNode

        ValueNode booleanNode​(boolean v)
      • numberNode

        ValueNode numberNode​(byte v)
      • numberNode

        ValueNode numberNode​(java.lang.Byte value)
      • numberNode

        ValueNode numberNode​(short v)
      • numberNode

        ValueNode numberNode​(java.lang.Short value)
      • numberNode

        ValueNode numberNode​(int v)
      • numberNode

        ValueNode numberNode​(java.lang.Integer value)
      • numberNode

        ValueNode numberNode​(long v)
      • numberNode

        ValueNode numberNode​(java.lang.Long value)
      • numberNode

        ValueNode numberNode​(java.math.BigInteger v)
      • numberNode

        ValueNode numberNode​(float v)
      • numberNode

        ValueNode numberNode​(java.lang.Float value)
      • numberNode

        ValueNode numberNode​(double v)
      • numberNode

        ValueNode numberNode​(java.lang.Double value)
      • numberNode

        ValueNode numberNode​(java.math.BigDecimal v)
      • textNode

        ValueNode textNode​(java.lang.String text)
      • binaryNode

        ValueNode binaryNode​(byte[] data)
      • binaryNode

        ValueNode binaryNode​(byte[] data,
                             int offset,
                             int length)
      • pojoNode

        ValueNode pojoNode​(java.lang.Object pojo)
      • rawValueNode

        ValueNode rawValueNode​(RawValue value)
        Factory method to use for adding "raw values"; pre-encoded values that are included exactly as-is when node is serialized. This may be used, for example, to include fully serialized JSON sub-trees. Note that the concept may not work with all backends, and since no translation of any kinds is done it will not work when converting between data formats.
        Since:
        2.6
      • arrayNode

        ArrayNode arrayNode​(int capacity)
        Factory method for constructing a JSON Array node with an initial capacity
        Since:
        2.8