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 JsonObject to a given Text object.

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


 Type: JsonObject

 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

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