Query.SaveAsJson(OutStream) Method
Version: Available or changed with runtime version 14.0.
Saves the resulting data set of a query as Json
Syntax
[Ok := ] Query.SaveAsJson(OutStream: OutStream)
Parameters
Query
Type: Query
An instance of the Query data type.
OutStream
Type: OutStream
The stream that you want to save the query as Json to.
Return Value
[Optional] Ok
Type: Boolean
true if the SaveAsJson succeeded, otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.
Related information
Query Data Type
Getting Started with AL
Developing Extensions