Parse array of json objects in json

Hello,
I've got sth like:

[
{"aaa": "bbb"},
{"ccc": "ddd"},
{"eee": "fff"}
] 

I've tried split input plugin but I think it would not work becouse I need parent key of the array. In this case there is no key because array is top instance without key. I read this:

but there is no answer of my problem.
Thank you for your help.

What exactly is your goal? Do you need each element as a separate event or as a top-level field in the same event?

Also, what is the actual input?

My input is sth like this:

[
{"aaa": "bbb"},
{"ccc": "ddd"},
{"eee": "fff"}
] 

I would like each object separate as a document.
Document:
{"aaa": "bbb"}
Document:
{"ccc": "ddd"}
Document:
{"eee": "fff"}

Then defining a

codec => "json"

in your input should be sufficient enough for this (unless it's multiline, in which case it becomes a bit trickier).

@Paris Mermigkas It's working!!! Thank you very much. I thought that I need to do this by filter but codec works great! Thank you!!!

Topic can be closed