#include <JsonSerializer.h>
|
| JsonValue () |
|
| JsonValue (const Aws::String &value) |
|
| JsonValue (Aws::IStream &istream) |
|
| JsonValue (const JsonValue &value) |
|
| JsonValue (JsonValue &&value) |
|
| ~JsonValue () |
|
JsonValue & | operator= (const JsonValue &other) |
|
JsonValue & | operator= (JsonValue &&other) |
|
bool | operator== (const JsonValue &other) const |
|
bool | operator!= (const JsonValue &other) const |
|
JsonValue & | WithString (const Aws::String &key, const Aws::String &value) |
|
JsonValue & | WithString (const char *key, const Aws::String &value) |
|
JsonValue & | AsString (const Aws::String &value) |
|
JsonValue & | WithBool (const Aws::String &key, bool value) |
|
JsonValue & | WithBool (const char *key, bool value) |
|
JsonValue & | AsBool (bool value) |
|
JsonValue & | WithInteger (const Aws::String &key, int value) |
|
JsonValue & | WithInteger (const char *key, int value) |
|
JsonValue & | AsInteger (int value) |
|
JsonValue & | WithInt64 (const Aws::String &key, long long value) |
|
JsonValue & | WithInt64 (const char *key, long long value) |
|
JsonValue & | AsInt64 (long long value) |
|
JsonValue & | WithDouble (const Aws::String &key, double value) |
|
JsonValue & | WithDouble (const char *key, double value) |
|
JsonValue & | AsDouble (double value) |
|
JsonValue & | WithArray (const Aws::String &key, const Array< Aws::String > &array) |
|
JsonValue & | WithArray (const char *key, const Array< Aws::String > &array) |
|
JsonValue & | WithArray (const Aws::String &key, const Array< JsonValue > &array) |
|
JsonValue & | WithArray (const Aws::String &key, Array< JsonValue > &&array) |
|
JsonValue & | AsArray (const Array< JsonValue > &array) |
|
JsonValue & | AsArray (Array< JsonValue > &&array) |
|
JsonValue & | WithObject (const Aws::String &key, const JsonValue &value) |
|
JsonValue & | WithObject (const char *key, const JsonValue &value) |
|
JsonValue & | WithObject (const Aws::String &key, JsonValue &&value) |
|
JsonValue & | WithObject (const char *key, JsonValue &&value) |
|
JsonValue & | AsObject (const JsonValue &value) |
|
JsonValue & | AsObject (JsonValue &&value) |
|
bool | WasParseSuccessful () const |
|
const Aws::String & | GetErrorMessage () const |
|
JsonView | View () const |
|
JSON DOM manipulation class. To read or serialize use View function.
Definition at line 29 of file JsonSerializer.h.
◆ JsonValue() [1/5]
Aws::Utils::Json::JsonValue::JsonValue |
( |
| ) |
|
Constructs empty JSON DOM.
◆ JsonValue() [2/5]
Aws::Utils::Json::JsonValue::JsonValue |
( |
const Aws::String & |
value | ) |
|
Constructs a JSON DOM by parsing the input string.
◆ JsonValue() [3/5]
Aws::Utils::Json::JsonValue::JsonValue |
( |
Aws::IStream & |
istream | ) |
|
Constructs a JSON DOM by parsing the text in the input stream.
◆ JsonValue() [4/5]
Aws::Utils::Json::JsonValue::JsonValue |
( |
const JsonValue & |
value | ) |
|
Performs a deep copy of the JSON DOM parameter. Prefer using a JsonView if copying is not needed.
◆ JsonValue() [5/5]
Aws::Utils::Json::JsonValue::JsonValue |
( |
JsonValue && |
value | ) |
|
Moves the ownership of the internal JSON DOM. No copying is performed.
◆ ~JsonValue()
Aws::Utils::Json::JsonValue::~JsonValue |
( |
| ) |
|
◆ AsArray() [1/2]
Converts the current JSON node to an array whose values are moved from the array parameter.
◆ AsArray() [2/2]
Converts the current JSON node to an array whose values are deep-copied from the array parameter.
◆ AsBool()
JsonValue& Aws::Utils::Json::JsonValue::AsBool |
( |
bool |
value | ) |
|
Converts the current JSON node to a bool.
◆ AsDouble()
JsonValue& Aws::Utils::Json::JsonValue::AsDouble |
( |
double |
value | ) |
|
Converts the current JSON node to a double.
◆ AsInt64()
JsonValue& Aws::Utils::Json::JsonValue::AsInt64 |
( |
long long |
value | ) |
|
Converts the current JSON node to a 64-bit integer.
◆ AsInteger()
JsonValue& Aws::Utils::Json::JsonValue::AsInteger |
( |
int |
value | ) |
|
Converts the current JSON node to an integer.
◆ AsObject() [1/2]
Converts the current JSON node to a JSON object by deep-copying the parameter.
◆ AsObject() [2/2]
Converts the current JSON node to a JSON object by moving from the parameter.
◆ AsString()
Converts the current JSON node to a string.
◆ GetErrorMessage()
const Aws::String& Aws::Utils::Json::JsonValue::GetErrorMessage |
( |
| ) |
const |
|
inline |
Returns the last error message from a failed parse attempt. Returns empty string if no error.
Definition at line 196 of file JsonSerializer.h.
◆ operator!=()
bool Aws::Utils::Json::JsonValue::operator!= |
( |
const JsonValue & |
other | ) |
const |
◆ operator=() [1/2]
Performs a deep copy of the JSON DOM parameter.
◆ operator=() [2/2]
Moves the ownership of the internal JSON DOM of the parameter to the current object. No copying is performed. A DOM currently owned by the object will be freed prior to copying.
- Warning
- This will result in invalidating any outstanding views of the current DOM. However, views to the moved-from DOM would still valid.
◆ operator==()
bool Aws::Utils::Json::JsonValue::operator== |
( |
const JsonValue & |
other | ) |
const |
◆ View()
JsonView Aws::Utils::Json::JsonValue::View |
( |
| ) |
const |
Creates a view from the current root JSON node.
◆ WasParseSuccessful()
bool Aws::Utils::Json::JsonValue::WasParseSuccessful |
( |
| ) |
const |
|
inline |
◆ WithArray() [1/4]
Adds an array of arbitrary JSON objects to the top level of this node at key. The values in the array parameter will be moved-from.
◆ WithArray() [2/4]
Adds an array of strings to the top level of this node at key.
◆ WithArray() [3/4]
Adds an array of arbitrary JSON objects to the top level of this node at key. The values in the array parameter will be deep-copied.
◆ WithArray() [4/4]
◆ WithBool() [1/2]
Adds a bool value with key to the top level of this node.
◆ WithBool() [2/2]
JsonValue& Aws::Utils::Json::JsonValue::WithBool |
( |
const char * |
key, |
|
|
bool |
value |
|
) |
| |
◆ WithDouble() [1/2]
Adds a double value at key at the top level of this node.
◆ WithDouble() [2/2]
JsonValue& Aws::Utils::Json::JsonValue::WithDouble |
( |
const char * |
key, |
|
|
double |
value |
|
) |
| |
◆ WithInt64() [1/2]
Adds a 64-bit integer value at key to the top level of this node.
◆ WithInt64() [2/2]
JsonValue& Aws::Utils::Json::JsonValue::WithInt64 |
( |
const char * |
key, |
|
|
long long |
value |
|
) |
| |
◆ WithInteger() [1/2]
Adds an integer value at key at the top level of this node.
◆ WithInteger() [2/2]
JsonValue& Aws::Utils::Json::JsonValue::WithInteger |
( |
const char * |
key, |
|
|
int |
value |
|
) |
| |
◆ WithObject() [1/4]
Adds a JSON object to the top level of this node at key. The object parameter is deep-copied.
◆ WithObject() [2/4]
Adds a JSON object to the top level of this node at key.
◆ WithObject() [3/4]
JsonValue& Aws::Utils::Json::JsonValue::WithObject |
( |
const char * |
key, |
|
|
const JsonValue & |
value |
|
) |
| |
◆ WithObject() [4/4]
JsonValue& Aws::Utils::Json::JsonValue::WithObject |
( |
const char * |
key, |
|
|
JsonValue && |
value |
|
) |
| |
◆ WithString() [1/2]
Adds a string to the top level of this node with key.
◆ WithString() [2/2]
◆ JsonView
The documentation for this class was generated from the following file: