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

WriteTo_String Method

Serializes and writes the JSON data of the JsonValue to a given Text object.

[Ok := ] JsonValue.WriteTo(var Text)


 Type: JsonValue

 Type: Text

The Text 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

Getting Started with AL
Developing Extensions