LogStash Codec

Hi,

I m facing an issue with a spring boot 2 project and logstash. It seems i use the wrong codec on my TCP configuration.
tcp {
port => 8050
codec => "json"
}
When i checked logstash logs , i see that my log is splited in two lines
I guess i should switch to json_lines codec but now it's my python project that are not working anymore.

Is there a way to fix my logback configuration to not split data ?
should i have to declare 2 inputs to get both of my applications working ?

Thank you in advance for your help