![]() |
|
Uniot Core
|
| 0.8.1 |
JSON array builder for creating ordered lists of values. More...
#include <MicroJSON.h>
Public Member Functions | |
| Array (String &out) | |
| Construct a new JSON Array. | |
| Array & | append (const String &value, bool quote=true) |
| Append a string value to the array. | |
| Array & | append (int value) |
| Append an integer value to the array. | |
| Array | appendArray () |
| Create a nested array as an element. | |
| Object | appendObject () |
| Create a nested object as an element. | |
| void | close () |
| Close the JSON array by appending the closing bracket. | |
JSON array builder for creating ordered lists of values.
This class provides a fluent interface for building JSON arrays by appending values to a String buffer. It automatically handles JSON formatting including quotes, commas, and brackets.
|
inline |
|
inline |
Append a string value to the array.
| value | The string value to append |
| quote | Whether to quote the value (default: true) |
| Array& | Reference to this array for method chaining |
|
inline |
Append an integer value to the array.
| value | The integer value to append |
| Array& | Reference to this array for method chaining |
|
inline |
|
inline |
|
inline |
Close the JSON array by appending the closing bracket.