# Problem when splitting a nested JSON array

**URL:** <https://discuss.elastic.co/t/problem-when-splitting-a-nested-json-array/270864>\
**Category:** Elasticsearch\
**Created:** [April 21, 2021, 3:34pm UTC](https://discuss.elastic.co/t/problem-when-splitting-a-nested-json-array/270864 "2021-04-21T15:34:14Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![pedro\_gonzalez](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@pedro\_gonzalez](https://discuss.elastic.co/u/pedro_gonzalez)\
**Post date:** [April 22, 2021, 5:59pm UTC](https://discuss.elastic.co/t/problem-when-splitting-a-nested-json-array/270864/5 "2021-04-22T17:59:15Z")

</div>

Hi @leandrojmp,

Thank you very much for your willingness to help. I made some changes compared to what I saw [here](https://discuss.elastic.co/t/split-nested-json-array/147969) and it worked. The problem of my real log schema is that it has few nested JSON arrays at different levels that's why it was a bit more complex than what you can see here:

> [@Split nested json array](https://discuss.elastic.co/t/split-nested-json-array/147969):
>
> I would like to to retrieve every element in below JSON to be a field so as to visualize in kibana by applying metrics in dashboard. { "message": "{"SegmentId":4,"VectorList":[{"LocalizationId":60,"ServiceId":1,"Date":"2018-09-10T00:00:00","IsAvailable":true,"FreeTermCount":80,"SegmentFreeTermCount":80,"FilterValue":null},{"LocalizationId":60,"ServiceId":2,"Date":"2018-09-10T00:00:00","IsAvailable":true,"FreeTermCount":21,"SegmentFreeTermCount":21,"FilterValue":42},{"LocalizationId":60,"Servi…

Thank you Leandro again.

---

_[View the full topic](https://discuss.elastic.co/t/problem-when-splitting-a-nested-json-array/270864)._
