How to filter the json files which are in combined and coming to logstash unable to read

Hi everyone,

We are trying to pull the data from kafka queue using logstash the data in Json formate. Its pulling the data but all json file are combine and coming it looks so clumsy. How to fix that issue.
Any idea what needs to be used here.

Json files look like this while it come to our logstash.

{"glossary": {"title": "example glossary","GlossDiv": {"title": "S","GlossList": {"GlossEntry": {"ID": "SGML","SortAs": "SGML","GlossTerm": "Standard Generalized Markup Language","Acronym": "SGML","Abbrev": "ISO 8879:1986","GlossDef": {"para": "A meta-markup language, used to create markup languages such as DocBook.","GlossSeeAlso": ["GML", "XML"]},"GlossSee": "markup"}}}}
and next Json FILE attach next to that with out new line it looks very weird how to filter this
will SPLIT filter work here such as Terminator \n.

any examples how to work on that. Please help me out thank in advance.

@magnusbaeck can you help me out here thanks