RyanMarcus / dirty-json

A parser for invalid JSON
GNU Affero General Public License v3.0
294 stars 30 forks source link

This one seems not work . #10

Closed intijk closed 6 years ago

intijk commented 6 years ago

I have such a json:

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

but it doesn't convert to

{
   "some": ["a","b","c"],
   "b": "a"
}
RyanMarcus commented 6 years ago

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.

RyanMarcus commented 6 years ago

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

intijk commented 6 years ago

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/

RyanMarcus commented 6 years ago

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

intijk commented 6 years ago

:smiley: i get it , thank you