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