JairusSW / as-json

The only JSON library you'll need for AssemblyScript. SIMD enabled
MIT License
80 stars 16 forks source link

fix: inappropriate escape ignore #48

Closed fguitton closed 1 year ago

fguitton commented 1 year ago

Hi 🌴 I hope you are having a great day !

This small PR provides a quick but perhaps inelegant fix to the inappropriate handling of escaped characters in sequences such as:

let stringVar = '{"a":"\\\\","b":"}","c":"][","d":"\\""}';
let objectVar = {
  a: '\\', b: '}', c: '][', d: '"'
};
JairusSW commented 1 year ago

Hey, just saw this! Thanks for the PR. I'm reviewing it right now.

JairusSW commented 1 year ago

Synced in https://www.npmjs.com/package/json-as/v/0.5.63