|
libcmutils 0.6.5
Multi-platform C99 utility library
|
JSON base object. More...
Data Fields | |
| void(* | ToString )(const CMUTIL_Json *json, CMUTIL_String *buf, CMBool pretty) |
| Convert the JSON object to a string representation. | |
| CMJsonType(* | GetType )(const CMUTIL_Json *json) |
| Get the type of the JSON object. | |
| CMUTIL_Json *(* | Clone )(const CMUTIL_Json *json) |
| Clone the JSON object. | |
| void(* | Destroy )(CMUTIL_Json *json) |
| Destroy the JSON object. | |
JSON base object.
| void(* CMUTIL_Json::ToString) (const CMUTIL_Json *json, CMUTIL_String *buf, CMBool pretty) |
Convert the JSON object to a string representation.
This method serializes the JSON object into a string format. If 'pretty' is CMTrue, the output will be formatted with indentation and line breaks for better readability.
| json | The JSON object to be converted. |
| buf | The string buffer to store the resulting string. |
| pretty | If CMTrue, the output will be pretty-printed. |
| CMJsonType(* CMUTIL_Json::GetType) (const CMUTIL_Json *json) |
Get the type of the JSON object.
This method retrieves the type of the JSON object, which can be one of the following: CMJsonTypeValue, CMJsonTypeObject, or CMJsonTypeArray.
| json | The JSON object to get the type from. |
| CMUTIL_Json *(* CMUTIL_Json::Clone) (const CMUTIL_Json *json) |
Clone the JSON object.
This method creates a deep copy of the JSON object.
| json | The JSON object to be cloned. |
| void(* CMUTIL_Json::Destroy) (CMUTIL_Json *json) |
Destroy the JSON object.
This method releases all resources associated with the JSON object and frees any allocated memory.
| json | A pointer to the CMUTIL_Json object to be destroyed. |