GsonObject::getAsJsonArray(const std::string_view key) const
Function Usage
Obtains the JsonArray child node corresponding to the key on the current node.
Function Syntax
JsonArray *GsonObject::getAsJsonArray(const std::string_view key) const;
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
key |
Key of the node to be obtained. |
Valid string |
Input |
Return Value
- Success: a pointer to the JsonArray child node corresponding to the key on the current node.
- Failure: a null pointer if the node is null, or a null node if the key does not exist on the node.
You must use delete to release the returned pointer to the JsonArray structure.
Parent topic: Function Syntax