Interface JsonBuilder

    • Method Detail

      • add

        JsonBuilder add​(String name,
                        Object o)
        Adds a property to the object to build
        Parameters:
        name - the property's name
        o - the property's value
        Returns:
        the JsonBuilder
      • build

        Object build()
        Builds the JSON object
        Returns:
        the object
      • toJson

        Object toJson​(Object o)
        Converts the given object to a JSON object
        Parameters:
        o - the object to convert
        Returns:
        the JSON object