# Parsing JSON data

**URL:** https://discuss.elastic.co/t/parsing-json-data/313217
**Category:** Logstash
**Created:** [August 30, 2022, 6:51am UTC](https://discuss.elastic.co/t/parsing-json-data/313217 "2022-08-30T06:51:27Z")
**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: [August 30, 2022, 4:26pm UTC](https://discuss.elastic.co/t/parsing-json-data/313217/2 "2022-08-30T16:26:55Z")

</div>

You will need a [multiline codec](https://discuss.elastic.co/t/parsing-xml-log-file-with-logstash/167306/2) to consume pretty-printed JSON. You can then use a [ruby filter](https://discuss.elastic.co/t/solved-split-filter-question-a-k-a-flatten-json-sub-array/130481/12) to flatten the [data][malwareCountFilters] event.

---

_[View the full topic](https://discuss.elastic.co/t/parsing-json-data/313217)._
