# 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:** 4

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 1, 2022, 5:54am UTC](https://discuss.elastic.co/t/parsing-json-data/313217/4 "2022-09-01T05:54:50Z")

</div>

Or perhaps another way by converting the file to ndjson

> [@Error in parsing Pretty Json Data](https://discuss.elastic.co/t/error-in-parsing-pretty-json-data/293103/3):
>
> Another possible approach is to simply turn your data into ndjson (new line delimited json) using jq found [here](https://stedolan.github.io/jq/) then you would not need to worry about the multiline etc. It is a super powerful json tool... Say your file looks like this ( I put 2 in but it will work with 1 to n) $ cat json-pretty-sample.json [{ "year": 2013, "title": "Rush", "info": { "directors": ["Ron Howard"], "release\_date": "2013-09-02T00:00:00Z", "rating": 8.3, "gen…

---

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