lua-cjson escapes slashes
vitek opened this issue · comments
Hi!
Why does lua-cjson escape slashes:
> cjson = require 'cjson'
> print(cjson.encode('/'))
"\/"
Is that a bug?
No, it's not. See the grammar at http://www.json.org/
/ is valid. / is valid too.
so /
is a control-character then...