# JSON to ROOT File

**URL:** <https://root-forum.cern.ch/t/json-to-root-file/50966>\
**Category:** Newbie\
**Created:** [July 26, 2022, 7:42am UTC](https://root-forum.cern.ch/t/json-to-root-file/50966 "2022-07-26T07:42:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [July 26, 2022, 9:20am UTC](https://root-forum.cern.ch/t/json-to-root-file/50966/3 "2022-07-26T09:20:03Z")

</div>

Hi,

ROOT natively supports only special JSON format for objects storage. See docu: [ROOT: TBufferJSON Class Reference](https://root.cern.ch/doc/master/classTBufferJSON.html)

But one always can read arbitrary JSON with any parser and store parsed data into ROOT file as tree or as any other objects. In the topic [Read JSON file in CERN ROOT](https://root-forum.cern.ch/t/read-json-file-in-cern-root/50769) shown example how nlohmann parser can be used with ROOT.

Regards,  
Sergy

---

_[View the full topic](https://root-forum.cern.ch/t/json-to-root-file/50966)._
