public interface JsonBuilder
| Modifier and Type | Method and Description |
|---|---|
JsonBuilder |
add(String name,
Object o)
Adds a property to the object to build
|
Object |
build()
Builds the JSON object
|
Object |
toJson(Object o)
Converts the given object to a JSON object
|
JsonBuilder add(String name, Object o)
name - the property's nameo - the property's valueJsonBuilderObject build()