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

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.