Rate This Document
Findability
Accuracy
Completeness
Readability

Gson::fromJson(std::string str);

Function Usage

Deserializes a string into map data.

Function Syntax

Object *Gson::fromJson(std::string str);

Parameters

Parameter

Description

Value Range

Input/Output

str

String to be deserialized.

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.