Skip to content

textmode.export.js / TextmodeExportAPI / saveJSON

Method: saveJSON()

ts
saveJSON(options?): void;

Downloads the selected layer or layer stack as a JSON file.

Parameters

ParameterTypeDescription
options?JSONExportOptionsExport options.

Returns

void

Example

ts
t.saveJSON({ filename: 'frame', layer: t.layers.base, pretty: true });
t.saveJSON({ filename: 'stack', target: 'all' });