JSON codec polluting logs with ERROR messages if input is plain string

This one only change the format of log messages, but doesn't anyhow filter or catch ERRORs, or I misunderstood something?