RyanMarcus / dirty-json

A parser for invalid JSON

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This one seems not work .

intijk opened this issue · comments

I have such a json:

{
   "some": [a,b,c,],
   "b": a
}

but it doesn't convert to

{
   "some": ["a","b","c"],
   "b": "a"
}

I can confirm this doesn't currently work. In fact, this doesn't work either:

{"some": [a,b,c,]}

I'll take a look today and see if I can figure it out.

I believe the new NPM version, 0.5.3, will correctly parse the example.

You sure you mean new NPM version 0.5.3?
That is way too old.

https://github.com/npm/npm/releases
https://nodejs.org/en/download/releases/

Oh, sorry. I mean the new version of the package I just published on NPM.

😃 i get it , thank you