The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.

AsValue Method

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

JsonValue := JsonToken.AsValue


 Type: JsonToken

A JsonToken for which IsValue returns true. If the JsonToken does not represent a fundamental JSON value, a run-time error occurs.

Return Value

Type: JsonValue

The returned JsonValue contains the same data as the JsonToken, but allows value-specific operations to be performed on the data.

See Also

HTTP, JSON, TextBuilder, and XML API
Getting Started with AL
Developing Extensions