clarinet
clarinet copied to clipboard
SAX based evented streaming JSON parser in JavaScript
I get unexpected column values when parsing a JSON file. Have a look at the following code. For example: I expect value 3 to have a column value of 78,...
I'm getting "Max buffer length exceeded" errors while parsing large text nodes. Looking at the code, [this line](https://github.com/dscape/clarinet/blob/master/clarinet.js#L101) seems to indicate that the parser should be able to handle strings...
# Test case ``` Clarinet var exports = {}; var parser = exports.parser(); parser.onvalue = function (v) { console.log("Value: " + v); }; parser.onkey = function (key) { console.log("Key: "...
It appears that if the last key in an object is a value, we don't get an objectclose event. This is causing me some problems when trying to create the...
As previously reported with a documentation clarification (see #46). It seems to me that API usability would be improved by eliminating this special case, such that `openobject` only signifies the...
There's this [Parsing JSON is a Minefield](http://seriot.ch/parsing_json.php) article which details various issues (mostly in edge cases) across different JSON parsers. Its author produced [a test suit](https://github.com/nst/JSONTestSuite) to test various implementations....
Fixes the problem with import for stored files stored in cachedb
Is there any way clarinet can be made to dual support node and ES6 modules? That would certainly make it a lot easier to depend on for the browser.
I'm interesting in parsing very large stringified JSON strings (up to 2GB). I have the string in memory, but the problem I have is that `JSON.parse` takes too long to...
I do have very large string values in my documents, so this is probably expected. Do I have any way of avoiding this ( I think some of the nodes...