Skip to content

textmode.export.js / TextmodeExportAPI / saveJSON

Method: saveJSON() ​

ts
saveJSON(options?): void;

Downloads the full layer stack as a v4 JSON document by default.

Parameters ​

ParameterTypeDescription
options?JSONExportOptionsExport options.

Returns ​

void

Examples ​

ts
t.saveJSON({ filename: 'frame', target: 'selected', layer: t.layers.base, pretty: true });
t.saveJSON({ filename: 'stack' }); // The full layer stack is the default.