# Set root node for JSON import

**URL:** <https://discourse.getcockpit.com/t/set-root-node-for-json-import/1259>\
**Category:** Feature Request\
**Created:** [March 11, 2020, 12:06pm UTC](https://discourse.getcockpit.com/t/set-root-node-for-json-import/1259 "2020-03-11T12:06:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zignature](https://avatars.discourse-cdn.com/v4/letter/z/9fc348/32.png) [@Zignature](https://discourse.getcockpit.com/u/Zignature)\
**Post date:** [March 11, 2020, 12:06pm UTC](https://discourse.getcockpit.com/t/set-root-node-for-json-import/1259/1 "2020-03-11T12:06:29Z")

</div>

I have various JSON files with a root node “data” e.g.

```
{
   "data": [
      {
         "id": "1234",
         "name": "bla di bla",
         "start_time": "2019-01-06T20:00:00+0100",
         "end_time": "2019-12-01T23:00:00+0100",
         "description": "bla di bla",
         "cover": {
            "offset_x": 50,
            "offset_y": 50,
            "source": "https://URL_PATH/image.jpg",
            "id": "6789"
         }
      }
   ]
}

```

Right now I’m manually stripping the root node, but it would be nice to be able to set a root node.

Regards,  
Zignature
