RyanMarcus / dirty-json

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

Example with wrong number separator #23

Open arthurshlain opened 4 years ago

arthurshlain commented 4 years ago

How about this? :)

{ "space":73,2,"space_percent":94,9 }

Means:

{ "space":73.2,"space_percent":94.9 }

How it works in demo now:

angular.js:10734 Error: Found } that I can't handle at line 0:37

RyanMarcus commented 4 years ago

This is really tricky, because [9,7] should map to [9, 7] and not [9.7]. I'll have to think about this one a little more...