ExportJSON()

Syntax

ExportJSON(#JSON, Filename$ [, Flags])
Description
Export the given JSON data to the user through a download. The JSON data will be encoded in UTF-8 format.

Parameters

#JSON The JSON to export.
Filename$ The filename to use. This is the name which will be shown to the user when the download starts.
Flags (optional) If set to #PB_JSON_PrettyPrint, the composed string will contain additional newline and whitespace for better readability. The extra whitespace is not significant to the JSON format. The output will have the same meaning to a JSON reader with or without this flag.

Return value

None.

See Also

ComposeJSON()

Supported OS

All

<- ExamineJSONMembers() - Json Index - ExtractJSONArray() ->