jsonicjs / jsonic

JSON parser that isn't strict
MIT License
199 stars 23 forks source link

Support backticks in property values #20

Open cyberbiont opened 4 years ago

cyberbiont commented 4 years ago

Currently jsonic converts `string` to "`string`"

rjrodger commented 4 years ago

some example code would actually be useful here - thanks

cyberbiont commented 3 years ago

Take the following JS:

{
    a: `b`,
}

copy it to JSON file

Run it through Jsonic you'll get

{
  "a": "`b`"
}

instead of

{
  "a": "b"
}

Backticks should be stripped out