{"bugs":{"url":"https://github.com/numbcoder/json-comments/issues"},"dist":{"shasum":"6558a5379fc66692fd9580269bbec2ae27bb45a6","tarball":"https://registry.npmjs.org/json-comments/-/json-comments-0.2.0.tgz","integrity":"sha512-MDBfvft8FYMDKecCReWwredSKe1t/w9sKfMg1Se6jcnyn7BfJWVR5te8Gb8ZF4VEDkM4T+R2Zf607PBKYTzKwA==","signatures":[{"sig":"MEYCIQDfv1O3q5Ul34SM8NcGrXC47DbOjH6EDvKcdinpYct1fQIhAJlH+WZLEU/LjogJirGgKd2wySZOdNttr/TghpdWhLPz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","name":"json-comments","tags":["json","comments","require","config","comment"],"_from":".","author":{"name":"Johnny Wong","email":"wzhao23@gmail.com"},"readme":"# json-comments\n\nMake your json config support comments.\n\n## Installation\n\n    $ npm install json-comments\n\n### Syntax:\n\n```javascript\n// require `json-comments` in your main module only once\nrequire('json-comments');\n```\n\n### Examples:\n\n`config.json`\n```javascript\n{\n  // this is host\n  \"host\" : \"localhost\",\n\n  \"port\" : 3000, //port\n\n  \"url\" : \"https://github.com/numbcoder\", /* url */\n\n  /*\n  * comments support for json\n  */\n  \"username\": \"abc\"\n}\n```\n\n`app.js`\n```javascript\nrequire('json-comments');\nvar config = require('./config');\n\nconsole.log(config);\n// ...\n```\n\n####Parse JSON string\n```js\nvar JSONC = require('json-comments');\nvar fs = require('fs');\n\nvar content = fs.readFileSync('./config.json', 'utf8');\n// parse JSON String\nvar config = JSONC.parse(content);\n\nconsole.log(config);\n```\n\n####Clean the JSON String\n```js\nvar JSONC = require('json-comments');\nvar fs = require('fs');\n\nvar content = fs.readFileSync('./config.json', 'utf8');\n\n// remove comments and spaces from JSON String\nvar JsonStr = JSONC.clean(content);\n```\n\n## License\nMIT\n","license":"MIT","scripts":{"test":"node test/test.js"},"_npmUser":{"name":"numbcoder","email":"wzhao23@gmail.com"},"homepage":"https://github.com/numbcoder/json-comments","repository":{"url":"git://github.com/numbcoder/json-comments.git","type":"git"},"_npmVersion":"1.3.13","description":"Make your json config file support comments.","maintainers":[{"name":"numbcoder","email":"wzhao23@gmail.com"}],"readmeFilename":"README.md","_id":"json-comments@0.2.0","version":"0.2.0"}