JsonValue.AsCode() Method

Version: Available or changed with runtime version 1.0.

Converts the value in a JsonValue to a Code data type.

Syntax

Result :=   JsonValue.AsCode()

Parameters

JsonValue
 Type: JsonValue
An instance of the JsonValue data type.

Return Value

Result
 Type: Code

Remarks

The operation will fail with a run-time error if the JsonValue contains NULL or UNDEFINED.

JsonValue Data Type
Get Started with AL
Developing Extensions