Rate This Document
Findability
Accuracy
Completeness
Readability

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.