> For the complete documentation index, see [llms.txt](https://stellar-game-assets.gitbook.io/modular-character-system/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stellar-game-assets.gitbook.io/modular-character-system/reference/scripting-guide/modular-character-manager-functions/saving-and-loading/savedataasjson.md).

# SaveDataAsJSON

ModularCharacterManager.SaveDataAsJSON

**Declaration**\
public **WearableSetData SaveDataAsJSON**(**string** \_saveName, **int** \_fileID);<br>

**Parameters**

<table><thead><tr><th width="217">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>string</strong> _saveName</td><td><em>The name of the saved file.</em></td></tr><tr><td><strong>int</strong> _fileID</td><td><em>An integer that corresponds to the set.</em></td></tr></tbody></table>

**Description**\
The public function to save a copy of the current Wearable Set Data as a JSON file to either the specified folder (editor) or the persistent path (runtime).

**Returns**\
The WearableSetData for the saved set.
