JsonToDataType - cJsonObject

Converts a JSON object structure into a native DataFlex variable (usually a struct / array)

Type: Function

Return Data Type: Struct

Parameters: None

Return Value

JSON object structure as a native DataFlex variable (usually a struct / array)


Syntax
Function JsonToDataType Returns Struct

Call: Get JsonToDataType to StructVariable


Description

Converts a JSON object structure into a native DataFlex variable (usually a struct / array).

This can be used to deserialize a JSON string into struct data, where one would first call ParseString to parse the JSON string into the object structure.

pbRequireAllMembers determines if JsonToDataType will give errors if a struct member does not exist in the JSON structure.

Do not augment this message.

See Also

DataTypeToJson | Supported Data Types In Web Services