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

Gson::toJson(Configuration *conf)

Function Usage

Serializes a Configuration object to a string.

Function Syntax

String *Gson::toJson(Configuration *conf);

Parameters

Parameter

Description

Value Range

Input/Output

conf

Pointer to the Configuration object to be serialized.

Not null

Input

Return Value

  • Success: serialization result of the Configuration object.
  • Failure: a null pointer if the conf pointer is null.

You must use delete to release the returned pointer to the String structure.