JsonObject.AsToken() Method

Version: Available or changed with runtime version 1.0.

Converts the value in a JsonObject to a JsonToken data type.

Syntax

Token :=   JsonObject.AsToken()

Parameters

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

Return Value

Token
 Type: JsonToken
The returned JsonToken contains the same data as the JsonObject, but allows for treating the data in a generic manner.

See Also

JsonObject Data Type
Get Started with AL
Developing Extensions