Newline character not processed by logback logstash JSON appender in Spring boot logger

So i'm trying to format my json string but somehow the newline characters are not being processed and get printed as-is.