remove newlines replacement for json dumps log as json.dumps with ident defaulting to None doesnot produce newlines