Interface JsonBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      JsonBuilder add​(java.lang.String name, java.lang.Object o)
      Adds a property to the object to build
      java.lang.Object build()
      Builds the JSON object
      java.lang.Object toJson​(java.lang.Object o)
      Converts the given object to a JSON object
    • Method Detail

      • add

        JsonBuilder add​(java.lang.String name,
                        java.lang.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

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

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