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

WriteTo_Stream Method

Serializes and writes the JSON data of the JsonToken to a given OutStream object.

[Ok := ] JsonToken.WriteTo(var OutStream)


 Type: JsonToken

 Type: OutStream

The OutStream object to which the JSON data will be written.

Property Value/Return Value

 Type: Boolean

True if the write was successful; otherwise, false.

If you omit this optional return value and if the write does not execute successfully, then a run-time error occurs.

See Also

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