to_json() don't parse nested object and breaks json string

I'm having trouble sending logs in json format generated from a command. The command generate (one json per line, json syntax checked with jsonlint and all json lines are ok. I send the input log to output file per debug and the json is ok)

AskedOctober 1, 2019 - 3:17am