GetJsonObject method: Message class

Syntax

GetJsonObject()

Description

Use the GetJsonObject method to retrieve the message data as a JSON object.

Note:

You must use this method with a valid object. If JSON data does not exist in the object, it returns NULL.

Parameters

None.

Returns

A JSON object; returns NULL if JSON data does not exist in the object.

Example

&jReqObject = &MSG.GetJsonObject();    
/* read out content of Json data from message */
If All(&jReqObject) Then
/* get data out of Json object */
    &str = &jReqObject.ToString();
Else
    /* no Json data in message */

End-If;