Skip to content

JsonToDataType - cJsonObject

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

Type: Function
Return Data Type: Struct

Syntax

Function JsonToDataType Returns Struct

Call Example

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.

Return Value

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