wardi / jsonlines

Documentation for the JSON Lines text file format
http://jsonlines.org
136 stars 33 forks source link

Newlines in data #13

Closed britishtea closed 8 years ago

britishtea commented 9 years ago

How are new lines in the data itself handled? Are they illegal?

It would be good to mention this.

wardi commented 9 years ago

sure, please send a pull request with suggested text.

Putting a real new line (not a \n in a string) will split the json across multiple lines, each line won't be valid JSON so rule 2 will be broken. I'm fine with making that explicit though.

britishtea commented 9 years ago

Are there markdown source files somewhere or should the HTML be altered directly?

wardi commented 9 years ago

All I have is the HTML I'm afraid :-(

Also happy to accept PRs that fix that problem