GetString method: JsonObject class

Syntax

GetString(Name)

Description

Use this method to return the string value of the property mentioned by the input parameter.

If the data type of the parameter is not a string, the method throws an exception. You may use a try-catch block to handle the exception.

Parameters

Parameter Description

Name

Specifies the name of the string object as a string.

Returns

String.

Example

Local JsonObject &jObj = CreateJsonObject();
&jObj.AddProperty("Name", "TYPE_STRING");
Local String &js = &jObj.GetString("Name");