# What's the best approach to saving additional data associated with a module?

**URL:** https://discourse.slicer.org/t/whats-the-best-approach-to-saving-additional-data-associated-with-a-module/9018
**Category:** Development
**Created:** [November 4, 2019, 10:12pm UTC](https://discourse.slicer.org/t/whats-the-best-approach-to-saving-additional-data-associated-with-a-module/9018 "2019-11-04T22:12:22Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [November 5, 2019, 1:33am UTC](https://discourse.slicer.org/t/whats-the-best-approach-to-saving-additional-data-associated-with-a-module/9018/3 "2019-11-05T01:33:51Z")

</div>

If your json is more than a few hundred characters then it may be more appropriate to store it in a [`slicer.vtkMRMLTextNode`](http://apidocs.slicer.org/master/classvtkMRMLTextNode.html):

- You have the option to save the text in a separate file (so that you can view/edit more easily in external software).
- There is a separate `TextModifiedEvent` for indicating text content modifications
- “Texts” module has a small text editor
- You can show/edit the content of the text node in your module using `slicer.qMRMLTextWidget`

You can keep using the scripted module node for other parameters and add a node reference to the text node to store the json text.

---

_[View the full topic](https://discourse.slicer.org/t/whats-the-best-approach-to-saving-additional-data-associated-with-a-module/9018)._
