# How to flatten the json, not working with previous post

**URL:** <https://discuss.elastic.co/t/how-to-flatten-the-json-not-working-with-previous-post/222608>\
**Category:** Logstash\
**Created:** [March 8, 2020, 3:14pm UTC](https://discuss.elastic.co/t/how-to-flatten-the-json-not-working-with-previous-post/222608 "2020-03-08T15:14:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 8, 2020, 3:21pm UTC](https://discuss.elastic.co/t/how-to-flatten-the-json-not-working-with-previous-post/222608/2 "2020-03-08T15:21:37Z")

</div>

You appear to have a file containing a pretty-printed JSON object. You will need to use a multiline codec to consume it. Take a look at [this](https://discuss.elastic.co/t/parsing-array-of-json-objects-with-logstash-and-injesting-to-elastic/203197/2).

---

_[View the full topic](https://discuss.elastic.co/t/how-to-flatten-the-json-not-working-with-previous-post/222608)._
