# Add\_field with json codec

**URL:** <https://discuss.elastic.co/t/add-field-with-json-codec/41411>\
**Category:** Logstash\
**Created:** [February 10, 2016, 5:46pm UTC](https://discuss.elastic.co/t/add-field-with-json-codec/41411 "2016-02-10T17:46:30Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 11, 2016, 6:49am UTC](https://discuss.elastic.co/t/add-field-with-json-codec/41411/4 "2016-02-11T06:49:49Z")

</div>

If you want to move all subfields into the top level (effectively simply removing the `outernode` level) have a look at [Help parsing nested JSON with dynamic top key](https://discuss.elastic.co/t/help-parsing-nested-json-with-dynamic-top-key/41069).

---

_[View the full topic](https://discuss.elastic.co/t/add-field-with-json-codec/41411)._
