# Save a tree of centerline curves to json files using Python

**URL:** https://discourse.slicer.org/t/save-a-tree-of-centerline-curves-to-json-files-using-python/36574
**Category:** Development
**Tags:** centerlines
**Created:** [June 3, 2024, 2:32pm UTC](https://discourse.slicer.org/t/save-a-tree-of-centerline-curves-to-json-files-using-python/36574 "2024-06-03T14:32:43Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [June 3, 2024, 3:41pm UTC](https://discourse.slicer.org/t/save-a-tree-of-centerline-curves-to-json-files-using-python/36574/2 "2024-06-03T15:41:50Z")

</div>

This [code snippet in the script repository](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#save-files-to-directory-structure-matching-subject-hierarchy-folders) implements what you described.

---

_[View the full topic](https://discourse.slicer.org/t/save-a-tree-of-centerline-curves-to-json-files-using-python/36574)._
