我要评分
获取效率
正确性
完整性
易理解

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.