jeroen / jsonlite

A Robust, High Performance JSON Parser and Generator for R
http://arxiv.org/abs/1403.2805
Other
377 stars 40 forks source link

C_escape_chars should also support \v #32

Closed wch closed 10 years ago

wch commented 10 years ago

See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Values,_variables,_and_literals?redirectlocale=en-US&redirectslug=JavaScript/Guide/Values,_variables,_and_literals#Using_special_characters_in_strings

jeroen commented 10 years ago

I don't think so. The \v is not listed on www.json.org or RFC 7159 and ["foo\vbar"] does not pass validation on www.jsonlint.org, or in jsonlite::validate. I think escaped \v is supported in JavaScript but not JSON.

json

wch commented 10 years ago

Oh, good point. I was looking at Javascript, not JSON.