# How to save CurvedNode as .mrk.json in python?

**URL:** <https://discourse.slicer.org/t/how-to-save-curvednode-as-mrk-json-in-python/16550>\
**Category:** Support\
**Tags:** python\
**Created:** [March 15, 2021, 3:16pm UTC](https://discourse.slicer.org/t/how-to-save-curvednode-as-mrk-json-in-python/16550 "2021-03-15T15:16:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![newtonsbm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/newtonsbm/32/10251_2.png) [@newtonsbm](https://discourse.slicer.org/u/newtonsbm)\
**Post date:** [March 15, 2021, 3:16pm UTC](https://discourse.slicer.org/t/how-to-save-curvednode-as-mrk-json-in-python/16550/1 "2021-03-15T15:16:43Z")

</div>

Im trying to export a CurvedNode to .mrk.json in python using Slicer in Jupyter Notebook  
(lassoan/slicer-notebook:2020-05-15-89b6bb5) but it only saves as fcsv format.

Currently Im doing:

```auto
file_path = os.path.join("saved", "markups.mrk.json")
myStorageNode = curveNode.CreateDefaultStorageNode()
myStorageNode.SetFileName(file_path)
myStorageNode.WriteData(curveNode)

```

Thank you!

---

<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:** [March 27, 2021, 6:14pm UTC](https://discourse.slicer.org/t/how-to-save-curvednode-as-mrk-json-in-python/16550/2 "2021-03-27T18:14:11Z")

</div>

I don’t think saving in json format was available then. You need to use a more recent Slicer version.
