|
|
| CJsonObject () |
| | Default constructor.
|
| |
| | CJsonObject (const CJsonObject &i_oOther) |
| | Copy constructor. More...
|
| |
| | CJsonObject (CJsonObject &&i_oOther) noexcept |
| | Move constructor. More...
|
| |
|
virtual | ~CJsonObject () |
| | Virtual destructor.
|
| |
| CJsonObject * | find (std::string_view i_stName) |
| | Finds a value in the JSON object. More...
|
| |
| std::vector< std::string > | getKeys () |
| | Returns the keys of the JSON object. More...
|
| |
| CJsonArray | toArray () const |
| | Converts the JSON object to a JSON array. More...
|
| |
| Threading::CMutex & | mutex () |
| | Returns a reference to the mutex. More...
|
| |
| EJsonType | type () const |
| | Returns the type of the JSON object. More...
|
| |
| CJsonObject & | get (const std::string_view i_stName) |
| | Gets the value associated with the specified name. More...
|
| |
|
void | setNull () |
| | Sets the type of the JSON object to null.
|
| |
| uint64 | toUInt64 () const |
| | Converts the JSON object to a 64-bit unsigned integer. More...
|
| |
| int64 | toInt64 () const |
| | Converts the JSON object to a 64-bit signed integer. More...
|
| |
| int | toInt () const |
| | Converts the JSON object to an integer. More...
|
| |
| uint | toUInt () const |
| | Converts the JSON object to an unsigned integer. More...
|
| |
| float | toFloat () const |
| | Converts the JSON object to a float. More...
|
| |
| double | toDouble () const |
| | Converts the JSON object to a double. More...
|
| |
| bool | toBool () const |
| | Converts the JSON object to a boolean. More...
|
| |
| bool | isNull () const |
| | Checks if the JSON object is null. More...
|
| |
|
CJsonObject & | operator= (const CJsonObject &i_oOther) |
| | Assignment operator overloads for various data types including CJsonObject, CJsonArray, char, string, uint64, uint, int64, float, double, int, and bool.
|
| |
|
CJsonObject & | operator= (CJsonObject &&i_oOther) noexcept |
| |
|
CJsonObject & | operator= (const CJsonArray &i_oOther) |
| |
|
CJsonObject & | operator= (const char *i_stValue) |
| |
|
CJsonObject & | operator= (const std::string &i_stValue) |
| |
|
CJsonObject & | operator= (const uint64 i_nValue) |
| |
|
CJsonObject & | operator= (const uint i_nValue) |
| |
|
CJsonObject & | operator= (const int64 i_nValue) |
| |
|
CJsonObject & | operator= (const float i_fValue) |
| |
|
CJsonObject & | operator= (const double i_dValue) |
| |
|
CJsonObject & | operator= (const int i_nValue) |
| |
|
CJsonObject & | operator= (const bool i_bState) |
| |
| CJsonObject & | operator[] (const std::string_view i_stKey) |
| | Subscript operator overload for string key. More...
|
| |
A class that encapsulates a JSON object.
This class represents a JSON object and provides methods for accessing and manipulating its data.
Example
jsonObject["name"] = "John Doe";
jsonObject["age"] = 30;
std::string name = jsonObject["name"].toString();
int age = jsonObject[
"age"].
toInt();
A class that encapsulates a JSON object.
Definition: JsonObject.h:50
int toInt() const
Converts the JSON object to an integer.
Definition: JsonObject.h:145