Interface JsonObjectBuilder


public interface JsonObjectBuilder
Builds JsonObject instances.
  • Method Details

    • setValue

      JsonObjectBuilder setValue(String name, Object value)
      Sets a property value on the building object.
      Parameters:
      name - the name of the property. Cannot be null.
      value - the value to add; must be an instance of a type defined by JsonValueType
      Returns:
      the current builder
    • build

      JsonObject build()
      Returns a built JsonObject.

      You may continue to use the builder after this is called, but any previously added values are cleared out.

      Returns:
      a built JsonObject