JsonValue.AsDuration() Method
Version: Available or changed with runtime version 1.0.
Converts the value in a JsonValue to a Duration data type.
Syntax
Result := JsonValue.AsDuration()
Parameters
JsonValue
Type: JsonValue
An instance of the JsonValue data type.
Return Value
Result
Type: Duration
If the JsonValue does not contain a number or a string which can be converted without loss of precision to a BigInteger, the operation will fail with a run-time error.
Related information
JsonValue Data Type
Get Started with AL
Developing Extensions