New line missing from json output - Fix