{"_id":"jsonsp","_rev":"7-856c923dcb4eee1d091bbaf8acedbecc","name":"jsonsp","description":"JSON stream parser for Node.js.","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"jsonsp","version":"0.1.0","description":"JSON Stream Parser for Node.js.","author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/jaredhanson/node-jsonsp.git"},"main":"./lib/jsonsp","dependencies":{"yajl":"https://github.com/jaredhanson/node-yajl/tarball/v0.6.1-build-fix"},"engines":{"node":">= 0.4.0"},"keywords":["json"],"_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"_id":"jsonsp@0.1.0","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.103","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"e43ac0bfba01cee3b2aaaccc3502d89915820350","tarball":"https://registry.npmjs.org/jsonsp/-/jsonsp-0.1.0.tgz","integrity":"sha512-8wcVQJqcCnfru/5yun6DKcToiSpLZU2mF7iU0CB04PRciIh+poXTBEyZhGo4eBsc8fglZ0rq8y5vEv6MAfcY7g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqX5323j3uhHVTfc+pNVaDNbXcinb2KN148TYas3SkzQIhAOCWPJsmluYoU9U983pnHi8h3RRPC11UBwy+wBamz43h"}]},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]},"0.2.0":{"name":"jsonsp","version":"0.2.0","description":"JSON stream parser for Node.js.","keywords":["json"],"repository":{"type":"git","url":"git://github.com/jaredhanson/node-jsonsp.git"},"bugs":{"url":"http://github.com/jaredhanson/node-jsonsp/issues"},"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"main":"./lib/jsonsp","dependencies":{"pkginfo":"0.2.x","yajl":"0.8.x"},"devDependencies":{"vows":"0.6.x"},"scripts":{"test":"NODE_PATH=lib node_modules/.bin/vows test/*-test.js"},"engines":{"node":">= 0.4.0"},"_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"_id":"jsonsp@0.2.0","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.17","_defaultsLoaded":true,"dist":{"shasum":"2d4d3e70f2f7376d7b4f911d7716d5cf1f512c5b","tarball":"https://registry.npmjs.org/jsonsp/-/jsonsp-0.2.0.tgz","integrity":"sha512-Y+csBLdW9EYutbsNti7mHt2fDy9t8TqezyggkCRuA7K3GrWpGVW/ldOVViXXIBHf1ycD91rMlwB+3z5NpYCN2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyFZUbSoj4dRm+UCa74mEuDbkIXZrXw46IMptvJV3SXAIhAItqriWMH7uNKikaprMqqtGEYgTd1z4ab1Zb5a3TXypr"}]},"readme":"# jsonsp\n\n[JSON](http://www.json.org/) stream parser for [Node](http://nodejs.org).\n\n## Installation\n\n    $ npm install jsonsp\n\nInstall from source code repository:\n\n    $ git clone git@github.com:jaredhanson/node-jsonsp.git\n    $ cd node-jsonsp\n    $ npm install\n\njsonsp depends on [YAJL](http://lloyd.github.com/yajl/) and the\n[YAJL binding for Node.js](https://github.com/vibornoff/node-yajl).  libyajl\nmust be installed on your system prior to installing jsonsp.\n\nInstall YAJL via [Homebrew](http://mxcl.github.com/homebrew/) on Mac OS X:\n\n    $ brew install yajl\n\n## Usage\n\n#### Initialize Parser\n\nCreate a new JSON stream parser.  The parser will incrementally parse data from\na stream, and emit an `'object'` event each time it parses a fully-formed JSON\nobject.\n\n    var parser = new jsonsp.Parser();\n    parser.on('object', function(obj) {\n      // do something with obj\n    });\n\n#### Parse Data from Stream\n\nAs chunks of data are read from a stream, they can be incrementally parsed by\nthe JSON stream parser.\n\n    var req = http.request(options, function(res) {\n      // feed each chunk of data incrementally to the JSON stream parser\n      res.on('data', function(chunk) {\n        parser.parse(chunk.toString('utf8'));\n      });\n    });\n\n## Examples\n\nFor a complete, working example, refer to the [Twitter Streaming API example](https://github.com/jaredhanson/node-jsonsp/tree/master/examples/twitter-stream).\n\n## Tests\n\n    $ npm install\n    $ make test\n\n## Credits\n\n  - [Jared Hanson](http://github.com/jaredhanson)\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011-2012 Jared Hanson\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]}},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}],"time":{"modified":"2022-06-19T06:48:03.608Z","created":"2011-10-27T03:35:06.675Z","0.1.0":"2011-10-27T03:35:08.216Z","0.2.0":"2012-09-09T20:40:29.812Z"},"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/jaredhanson/node-jsonsp.git"}}