fixed json error with newline