Last updated
Was this helpful?
Last updated
Was this helpful?
The JSON module can be used to transform Flow variables (records or tables) into JSON data and vice versa.
The generic Decode function takes a JSON record (as text) and decodes it as the specified type (T). Fields which are present in the type (T) but do not have a corresponding entry in the JSON data will be created with the default value. It is therefore recommended to specify default values for all type structures which will be decoded from JSON.
The generic DecodeTable function takes a JSON table (as text) and decodes it as a table of the specified type (T). Columns which are present in the type (T) but do not have corresponding entries in the JSON data will be created with the default value. It is therefore recommended to specify default values for all type structures which will be decoded from JSON.
The generic Encode function takes any FlowScript record variable and encodes it as JSON.
The generic Encode function takes any FlowScript table variable and encodes it as JSON.