A generic JSON value.
More...
#include <xentara/workbench/json/Value_stage1.hpp>
◆ Value() [1/3]
| xentara::workbench::json::Value::Value |
( |
| ) |
|
|
default |
◆ Value() [2/3]
| xentara::workbench::json::Value::Value |
( |
const Value & |
| ) |
|
|
default |
◆ Value() [3/3]
| xentara::workbench::json::Value::Value |
( |
Value && |
| ) |
|
|
defaultnoexcept |
◆ ~Value()
| xentara::workbench::json::Value::~Value |
( |
| ) |
|
|
default |
◆ decode()
Reads the value from a JSON value.
- Parameters
-
| encodedValue | The encoded JSON value |
| options | Decoding opotions. |
- Exceptions
-
◆ encode()
Write the value to a JSON value.
- Parameters
-
| encodedValue | The JSON value to encode to |
- Exceptions
-
◆ fromString()
Creates a JSON value from a string, applying a filter to the JSON object.
- Parameters
-
| string | The string to decode |
| options | Decoding opotions. |
- Returns
- The object, or an error message on error.
◆ operator=() [1/2]
| auto xentara::workbench::json::Value::operator= |
( |
const Value & |
| ) |
-> Value & |
|
default |
Copy-assignment operator.
◆ operator=() [2/2]
| auto xentara::workbench::json::Value::operator= |
( |
Value && |
| ) |
-> Value & |
|
defaultnoexcept |
Move-assignment operator.
◆ operator==()
| auto xentara::workbench::json::Value::operator== |
( |
const Value & |
| ) |
const -> bool |
|
default |
Equality comparison operator.
◆ toString()
Converts the JSON value to a string.
- Parameters
-
| format | The format to use for the document |
- Returns
- The JSON text.