kcwiki/lua-json

`\` is not escaped properly

Opened this issue · 0 comments

code:

const { format, parse } = require('lua-json');
console.log(format({"\\": true}));

returned:

return {
  ['\'] = true,
}

expected:

return {
  ['\\'] = true,
}