|
| | Object (String &out) |
| | Construct a new JSON Object.
|
| |
| Object & | put (const String &key, const String &value, bool quote=true) |
| | Add a string key-value pair to the object.
|
| |
| Object & | put (const String &key, int value) |
| | Add an integer key-value pair to the object.
|
| |
| Array | putArray (const String &key) |
| | Create a nested array for the given key.
|
| |
| Object | putObject (const String &key) |
| | Create a nested object for the given key.
|
| |
| void | close () |
| | Close the JSON object by appending the closing brace.
|
| |
JSON object builder for creating key-value pairs.
This class provides a fluent interface for building JSON objects by appending key-value pairs to a String buffer. It automatically handles JSON formatting including quotes, commas, and braces.