Interface JsonArrayBuilder


public interface JsonArrayBuilder
Builds JsonArray instances.
  • Method Details

    • add

      Adds a value to the end of the building array.
      Parameters:
      value - the value to add; must be an instance of a type defined by JsonValueType
      Returns:
      the current builder
    • build

      JsonArray build()
      Returns the built JsonArray.

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

      Returns:
      the built JsonArray