textmode.export.js / TextmodeExportAPI / saveJSON
Method: saveJSON()
ts
saveJSON(options?): void;Downloads the full layer stack as a v4 JSON document by default.
Parameters
| Parameter | Type | Description |
|---|---|---|
options? | JSONExportOptions | Export 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.