Rate This Document
Findability
Accuracy
Completeness
Readability

Gson::fromJson(String *str);

Function Usage

Deserializes a string into map data.

Function Syntax

Object *Gson::fromJson(String *str);

Parameters

Parameter

Description

Value Range

Input/Output

str

Pointer to the string to be deserialized.

Non-null and valid JSON string

Input

Return Value

  • Success: a pointer to the map after deserialization.
  • Failure: a null pointer if the string is invalid.

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