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

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.