Gson::toJson(JsonElement *jsonElement)
Function Usage
Serializes a JsonElement object to a string.
Function Syntax
String *Gson::toJson(JsonElement *jsonElement);
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
jsonElement |
Pointer to the JsonElement object to be serialized. |
Not null |
Input |
Return Value
- Success: serialization result of the JsonElement object.
- Failure: a null pointer if the node is null.
You must use delete to release the returned pointer to the String structure.
Parent topic: Function Syntax