textmode.export.js / TextmodeExportAPI / saveJSON
Method: saveJSON()
ts
saveJSON(options?): void;Downloads the selected layer or layer stack as a JSON file.
Parameters
| Parameter | Type | Description |
|---|---|---|
options? | JSONExportOptions | Export options. |
Returns
void
Example
ts
t.saveJSON({ filename: 'frame', layer: t.layers.base, pretty: true });
t.saveJSON({ filename: 'stack', target: 'all' });