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

View thread