Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

When you need to encode the newline character in your data, you say \n in the JSON. Unlike (the RFC dialect of) CSV, JSON has an escape sequence denoting a newline and in fact requires its use. The only reason to introduce newlines into JSON data is prettyprinting.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: