You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's this Parsing JSON is a Minefield article which details various issues (mostly in edge cases) across different JSON parsers.
Its author produced a test suit to test various implementations. I've run this test suit against Oboe (on node 9.6.1), results compared to native JSON.parse are below (successful tests not shown).
Generally, I think the results are good. But there's one thing that Oboe does different from native implementation (and others): It allows some malformed inputs slide where JSON.parse does not.
I'm raising this issue more for the purposes of discussion. What do you think, should this be addressed?
Results screenshot
Legend
Snippet I used to run Oboe (derived from their JSON.parse):
Note that at the time of writing the test runner has a really weird bug preventing it from running which isn't hard to patch out though.
I'm a bit confused on relationship between Oboe and Clarinet, website states Oboe is based on Clarinet, but I don't see it as a dependancy and the test results of Oboe are somewhat different from Clarinet. If you do have any interest in Clarinet, I opened a similar issues there: dscape/clarinet#49.
The text was updated successfully, but these errors were encountered:
There's this Parsing JSON is a Minefield article which details various issues (mostly in edge cases) across different JSON parsers.
Its author produced a test suit to test various implementations. I've run this test suit against Oboe (on node 9.6.1), results compared to native
JSON.parse
are below (successful tests not shown).Generally, I think the results are good. But there's one thing that Oboe does different from native implementation (and others): It allows some malformed inputs slide where
JSON.parse
does not.I'm raising this issue more for the purposes of discussion. What do you think, should this be addressed?
Results screenshot
Legend
Snippet I used to run Oboe (derived from their
JSON.parse
):Note that at the time of writing the test runner has a really weird bug preventing it from running which isn't hard to patch out though.
I'm a bit confused on relationship between Oboe and Clarinet, website states Oboe is based on Clarinet, but I don't see it as a dependancy and the test results of Oboe are somewhat different from Clarinet. If you do have any interest in Clarinet, I opened a similar issues there: dscape/clarinet#49.
The text was updated successfully, but these errors were encountered: