A generic JSON array.
More...
#include <xentara/workbench/json/Array_stage1.hpp>
◆ Array() [1/3]
| xentara::workbench::json::Array::Array |
( |
| ) |
|
|
default |
◆ Array() [2/3]
| xentara::workbench::json::Array::Array |
( |
const Array & |
| ) |
|
|
default |
◆ Array() [3/3]
| xentara::workbench::json::Array::Array |
( |
Array && |
| ) |
|
|
defaultnoexcept |
◆ ~Array()
| xentara::workbench::json::Array::~Array |
( |
| ) |
|
|
default |
◆ decode() [1/2]
Reads the array from a JSON array.
- Parameters
-
| encodedArray | The encoded JSON array |
| options | Decoding opotions. |
- Exceptions
-
◆ decode() [2/2]
Reads the array from a generic JSON value.
- Parameters
-
| encodedValue | The encoded JSON value |
| options | Decoding opotions. |
- Exceptions
-
◆ empty()
| constexpr auto xentara::workbench::json::Array::empty |
( |
| ) |
const -> bool |
|
constexprnoexcept |
Checks if the array is empty.
- Returns
- Returns true if the array is empty, *false if it contains any elements.
◆ encode() [1/2]
Write the array to a JSON array.
- Parameters
-
| encodedArray | The JSON array to encode to |
- Exceptions
-
◆ encode() [2/2]
Write the array to a generic JSON value.
- Parameters
-
| encodedValue | The JSON value to encode to |
- Exceptions
-
◆ fromString()
Creates a JSON array from a string.
- Parameters
-
| string | The string to decode |
| options | Decoding options. |
- Returns
- The object, or an error message on error.
◆ operator=() [1/2]
| auto xentara::workbench::json::Array::operator= |
( |
Array && |
| ) |
-> Array & |
|
defaultnoexcept |
Move-assignment operator.
◆ operator=() [2/2]
| auto xentara::workbench::json::Array::operator= |
( |
const Array & |
| ) |
-> Array & |
|
default |
Copy-assignment operator.
◆ operator==()
| auto xentara::workbench::json::Array::operator== |
( |
const Array & |
| ) |
const -> bool |
|
default |
Equality comparison operator.
◆ toString()
Converts the JSON array to a string.
- Parameters
-
| format | The format to use for the document |
- Returns
- The JSON text.