Edit

Share via


JsonObject.WriteToYaml(var Text) Method

Version: Available or changed with runtime version 14.3.

Serializes and writes the JsonObject as YAML to a given Text object.

Syntax

[Ok := ]  JsonObject.WriteToYaml(var String: Text)

Parameters

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

String
 Type: Text
The Text object to which the YAML data will be written.

Return Value

[Optional] Ok
 Type: Boolean
true if the write was successful; otherwise, false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.

JsonObject data type
Getting started with AL
Developing extensions