{"_id":"cjson","_rev":"163662","name":"cjson","description":"cjson - Commented JavaScript Object Notation. It is a json loader, which parses only valid json files, but with comments enabled. Useful for loading configs.","dist-tags":{"latest":"0.5.0","stable":"0.0.6"},"maintainers":[{"name":"kof","email":""}],"time":{"modified":"2021-06-03T11:43:12.000Z","created":"2011-03-21T23:51:31.405Z","0.5.0":"2017-01-07T19:03:10.569Z","0.4.0":"2016-03-21T20:13:46.725Z","0.3.3":"2016-01-13T08:31:18.379Z","0.3.2":"2015-09-28T11:08:51.748Z","0.3.1":"2015-04-22T18:18:54.077Z","0.3.0":"2014-01-12T13:15:15.332Z","0.2.1":"2012-09-21T08:17:10.407Z","0.2.0":"2012-09-20T22:07:47.186Z","0.1.0":"2012-09-20T21:35:46.590Z","0.0.6":"2011-11-14T10:33:06.702Z","0.0.5":"2011-10-10T13:10:11.931Z","0.0.4":"2011-08-31T14:31:29.982Z","0.0.3":"2011-03-25T22:45:24.026Z","0.0.2":"2011-03-22T13:52:02.007Z","0.0.1":"2011-03-21T23:51:31.405Z"},"users":{"jxson":true,"harrisiirak":true,"nickeltobias":true,"tobiasnickel":true,"joris-van-der-wel":true,"bikai":true},"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git://github.com/kof/node-cjson.git"},"versions":{"0.5.0":{"name":"cjson","description":"cjson - Commented JavaScript Object Notation. It is a json loader, which parses only valid json files, but with comments enabled. Useful for loading configs.","version":"0.5.0","repository":{"type":"git","url":"git://github.com/kof/node-cjson.git"},"keywords":["json","parser","comments","config","loader"],"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"engines":{"node":">= 0.3.0"},"dependencies":{"json-parse-helpfulerror":"^1.0.3"},"scripts":{"test":"node ./test/test.js"},"license":"MIT","gitHead":"d7eef152ee56626930af8dc191b4c862e3fa5df0","bugs":{"url":"https://github.com/kof/node-cjson/issues"},"homepage":"https://github.com/kof/node-cjson#readme","_id":"cjson@0.5.0","_shasum":"a0f48601e016164dfb2c6d891e380c96cada9839","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"dist":{"shasum":"a0f48601e016164dfb2c6d891e380c96cada9839","size":6617,"noattachment":false,"key":"/cjson/-/cjson-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cjson/download/cjson-0.5.0.tgz"},"maintainers":[{"name":"kof","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/cjson-0.5.0.tgz_1483815789931_0.7083546537905931"},"directories":{},"publish_time":1483815790569,"_cnpm_publish_time":1483815790569,"_hasShrinkwrap":false},"0.4.0":{"name":"cjson","description":"cjson - Commented JavaScript Object Notation. It is a json loader, which parses only valid json files, but with comments enabled. Useful for loading configs.","version":"0.4.0","repository":{"type":"git","url":"git://github.com/kof/node-cjson.git"},"keywords":["json","parser","comments","config","loader"],"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"engines":{"node":">= 0.3.0"},"dependencies":{"json-parse-helpfulerror":"^1.0.3"},"scripts":{"test":"node ./test/test.js"},"license":"MIT","gitHead":"573078a4872435a08162fb5a531d52c3b26e75c7","bugs":{"url":"https://github.com/kof/node-cjson/issues"},"homepage":"https://github.com/kof/node-cjson#readme","_id":"cjson@0.4.0","_shasum":"627ea5a6887fb425baa44732a85ba800031c4ab0","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":""}],"dist":{"shasum":"627ea5a6887fb425baa44732a85ba800031c4ab0","size":6535,"noattachment":false,"key":"/cjson/-/cjson-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cjson/download/cjson-0.4.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cjson-0.4.0.tgz_1458591224294_0.3559894389472902"},"directories":{},"publish_time":1458591226725,"_cnpm_publish_time":1458591226725,"_hasShrinkwrap":false},"0.3.3":{"name":"cjson","description":"cjson - Commented JavaScript Object Notation. It is a json loader, which parses only valid json files, but with comments enabled. Useful for loading configs.","version":"0.3.3","repository":{"type":"git","url":"git://github.com/kof/node-cjson.git"},"keywords":["json","parser","comments","config","loader"],"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"engines":{"node":">= 0.3.0"},"dependencies":{"json-parse-helpfulerror":"^1.0.3"},"scripts":{"test":"node ./test/test.js"},"license":"MIT","gitHead":"e5bd478ce198c46ce698a2af51a79ae437e43f35","bugs":{"url":"https://github.com/kof/node-cjson/issues"},"homepage":"https://github.com/kof/node-cjson#readme","_id":"cjson@0.3.3","_shasum":"a92d9c786e5bf9b930806329ee05d5d3261b4afa","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":""}],"dist":{"shasum":"a92d9c786e5bf9b930806329ee05d5d3261b4afa","size":6057,"noattachment":false,"key":"/cjson/-/cjson-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/cjson/download/cjson-0.3.3.tgz"},"directories":{},"publish_time":1452673878379,"_cnpm_publish_time":1452673878379,"_hasShrinkwrap":false},"0.3.2":{"name":"cjson","description":"cjson - Commented JavaScript Object Notation. It is a json loader, which parses only valid json files, but with comments enabled. Useful for loading configs.","version":"0.3.2","repository":{"type":"git","url":"git://github.com/kof/node-cjson.git"},"keywords":["json","parser","comments","config","loader"],"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"engines":{"node":">= 0.3.0"},"dependencies":{"json-parse-helpfulerror":"^1.0.3"},"scripts":{"test":"node ./test/test.js"},"license":"MIT","gitHead":"4c39b0fc9bc8947f72bf363c52f85f12fb2c0fc3","bugs":{"url":"https://github.com/kof/node-cjson/issues"},"homepage":"https://github.com/kof/node-cjson#readme","_id":"cjson@0.3.2","_shasum":"f6a887abbd87ed625bda71bf455d4b9121bb433a","_from":".","_npmVersion":"2.13.0","_nodeVersion":"2.4.0","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":""}],"dist":{"shasum":"f6a887abbd87ed625bda71bf455d4b9121bb433a","size":5310,"noattachment":false,"key":"/cjson/-/cjson-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/cjson/download/cjson-0.3.2.tgz"},"directories":{},"publish_time":1443438531748,"_cnpm_publish_time":1443438531748,"_hasShrinkwrap":false},"0.3.1":{"name":"cjson","description":"cjson - Commented Javascript Object Notation. It is a json loader, which parses only valid json files, but with comments enabled. Useful for loading configs.","version":"0.3.1","repository":{"type":"git","url":"git://github.com/kof/node-cjson.git"},"keywords":["json","parser","comments","config","loader"],"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"engines":{"node":">= 0.3.0"},"dependencies":{"jsonlint":"1.6.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"c31db4d96a068d7763dfd3f8d4a63fe9a44c0711","bugs":{"url":"https://github.com/kof/node-cjson/issues"},"homepage":"https://github.com/kof/node-cjson","_id":"cjson@0.3.1","scripts":{},"_shasum":"e14b2f2c1588841a058795a7d39140c946716dac","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":""}],"dist":{"shasum":"e14b2f2c1588841a058795a7d39140c946716dac","size":5360,"noattachment":false,"key":"/cjson/-/cjson-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cjson/download/cjson-0.3.1.tgz"},"directories":{},"publish_time":1429726734077,"_cnpm_publish_time":1429726734077,"_hasShrinkwrap":false},"0.3.0":{"name":"cjson","description":"cjson - Commented Javascript Object Notation. It is a json loader, which parses only valide json files, but with comments enabled. Usefull for loading configs.","version":"0.3.0","repository":{"type":"git","url":"git://github.com/kof/node-cjson.git"},"keywords":["json","parser","comments","config","loader"],"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"engines":{"node":">= 0.3.0"},"dependencies":{"jsonlint":"1.6.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"readmeFilename":"readme.md","bugs":{"url":"https://github.com/kof/node-cjson/issues"},"homepage":"https://github.com/kof/node-cjson","_id":"cjson@0.3.0","dist":{"shasum":"e6439b90703d312ff6e2224097bea92ce3d02a14","size":5206,"noattachment":false,"key":"/cjson/-/cjson-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cjson/download/cjson-0.3.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":""}],"directories":{},"publish_time":1389532515332,"_cnpm_publish_time":1389532515332,"_hasShrinkwrap":false},"0.2.1":{"name":"cjson","description":"cjson - Commented Javascript Object Notation. It is a json loader, which parses only valide json files, but with comments enabled. Usefull for loading configs.","version":"0.2.1","repository":{"type":"git","url":"git://github.com/kof/node-cjson.git"},"keywords":["json","parser","comments","config","loader"],"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"engines":{"node":">= 0.3.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"cjson@0.2.1","dist":{"shasum":"73cd8aad65d9e1505f9af1744d3b79c1527682a5","size":5122,"noattachment":false,"key":"/cjson/-/cjson-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cjson/download/cjson-0.2.1.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":""}],"directories":{},"publish_time":1348215430407,"_cnpm_publish_time":1348215430407,"_hasShrinkwrap":false},"0.2.0":{"name":"cjson","description":"cjson - Commented Javascript Object Notation. It is a json loader, which parses only valide json files, but with comments enabled. Usefull for loading configs.","version":"0.2.0","repository":{"type":"git","url":"git://github.com/kof/node-cjson.git"},"keywords":["json","parser","comments","config","loader"],"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"engines":{"node":">= 0.3.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"cjson@0.2.0","dist":{"shasum":"1e2adf67207ecfe650f80df2ae53ada0e365a8f4","size":5080,"noattachment":false,"key":"/cjson/-/cjson-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cjson/download/cjson-0.2.0.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":""}],"directories":{},"publish_time":1348178867186,"_cnpm_publish_time":1348178867186,"_hasShrinkwrap":false},"0.1.0":{"name":"cjson","description":"cjson - Commented Javascript Object Notation. It is a json loader, which parses only valide json files, but with comments enabled. Usefull for loading configs.","version":"0.1.0","repository":{"type":"git","url":"git://github.com/kof/node-cjson.git"},"keywords":["json","parser","comments","config","loader"],"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"engines":{"node":">= 0.3.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"cjson@0.1.0","dist":{"shasum":"ad08e4e782ce0403425715656820141b8327a632","size":4892,"noattachment":false,"key":"/cjson/-/cjson-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cjson/download/cjson-0.1.0.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":""}],"directories":{},"publish_time":1348176946590,"_cnpm_publish_time":1348176946590,"_hasShrinkwrap":false},"0.0.6":{"name":"cjson","description":"cjson - Commented Javascript Object Notation. It is a json loader, which parses only valide json files, but with comments enabled. Usefull for loading configs.","version":"0.0.6","repository":{"type":"git","url":"git://github.com/kof/node-cjson.git"},"keywords":["json","parser","comments","config","loader"],"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"engines":{"node":">= 0.3.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"_id":"cjson@0.0.6","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.0","_defaultsLoaded":true,"dist":{"shasum":"f53a8664cd5f195c0bed06235cd4a38df88b4208","size":10240,"noattachment":false,"key":"/cjson/-/cjson-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/cjson/download/cjson-0.0.6.tgz"},"maintainers":[{"name":"kof","email":""}],"directories":{},"publish_time":1321266786702,"_cnpm_publish_time":1321266786702,"_hasShrinkwrap":false},"0.0.5":{"name":"cjson","description":"cjson - Commented Javascript Object Notation. It is a json loader, which parses only valide json files, but with comments enabled. Usefull for loading configs.","version":"0.0.5","repository":{"type":"git","url":"git://github.com/kof/node-cjson.git"},"keywords":["json","parser","comments","config","loader"],"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"engines":{"node":">= 0.3.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"_npmJsonOpts":{"file":"/Users/kof/.npm/cjson/0.0.5/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"cjson@0.0.5","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.17","_nodeVersion":"v0.4.7","_defaultsLoaded":true,"dist":{"shasum":"e9abfb63ea4fc806906489243341e522289ab0f3","size":4251,"noattachment":false,"key":"/cjson/-/cjson-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/cjson/download/cjson-0.0.5.tgz"},"scripts":{},"maintainers":[{"name":"kof","email":""}],"directories":{},"publish_time":1318252211931,"_cnpm_publish_time":1318252211931,"_hasShrinkwrap":false},"0.0.4":{"name":"cjson","description":"cjson - Commented Javascript Object Notation. It is a json loader, which parses only valide json files, but with comments enabled. Usefull for loading configs.","version":"0.0.4","repository":{"type":"git","url":"git://github.com/kof/node-cjson.git"},"keywords":["json","parser","comments","config","loader"],"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"engines":{"node":">= 0.3.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"dependencies":{},"devDependencies":{},"_id":"cjson@0.0.4","_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.4.3","_defaultsLoaded":true,"dist":{"shasum":"ccefb04118591059d20502c552b368d6cbe7981a","size":4259,"noattachment":false,"key":"/cjson/-/cjson-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/cjson/download/cjson-0.0.4.tgz"},"scripts":{},"maintainers":[{"name":"kof","email":""}],"directories":{},"publish_time":1314801089982,"_cnpm_publish_time":1314801089982,"_hasShrinkwrap":false},"0.0.3":{"name":"cjson","description":"cjson - Commented Javascript Object Notation. It is a json loader, which parses only valide json files, but with comments enabled. Usefull for loading configs.","version":"0.0.3","repository":{"type":"git","url":"git://github.com/kof/node-cjson.git"},"keywords":["json","parser","comments","config","loader"],"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"engines":{"node":">= 0.3.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"cjson@0.0.3","_engineSupported":true,"_npmVersion":"0.3.17","_nodeVersion":"v0.4.3","directories":{"lib":"./lib"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"514b9cd0c768dedd48ae77aff0b198e9ff1bd67f","size":4198,"noattachment":false,"key":"/cjson/-/cjson-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/cjson/download/cjson-0.0.3.tgz"},"publish_time":1301093124026,"maintainers":[{"name":"kof","email":""}],"_cnpm_publish_time":1301093124026,"_hasShrinkwrap":false},"0.0.2":{"name":"cjson","description":"cjson - Commented Javascript Object Notation. It is a json loader, which parses only valide json files, but with comments enabled. Usefull for loading configs.","version":"0.0.2","repository":{"type":"git","url":"git://github.com/kof/node-cjson.git"},"keywords":["json","parser","comments","config","loader"],"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"engines":{"node":">= 0.3.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"cjson@0.0.2","_engineSupported":true,"_npmVersion":"0.3.17","_nodeVersion":"v0.4.3","directories":{"lib":"./lib"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"e1760a36cd6f5e25c4a0d8d9365309144c61f6a3","size":3632,"noattachment":false,"key":"/cjson/-/cjson-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/cjson/download/cjson-0.0.2.tgz"},"publish_time":1300801922007,"maintainers":[{"name":"kof","email":""}],"_cnpm_publish_time":1300801922007,"_hasShrinkwrap":false},"0.0.1":{"name":"cjson","description":"cjson - Commented Javascript Object Notation. It is a json loader, which parses only valide json files, but with comments enabled. Usefull for loading configs.","version":"0.0.1","repository":{"type":"git","url":"git://github.com/kof/node-cjson.git"},"keywords":["json","parser","comments","config","loader"],"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"engines":{"node":">= 0.3.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"cjson@0.0.1","_engineSupported":true,"_npmVersion":"0.3.15","_nodeVersion":"v0.4.0","directories":{"lib":"./lib"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"21c7e4d7f91669ad80f53925fdc5712234513202","size":3276,"noattachment":false,"key":"/cjson/-/cjson-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cjson/download/cjson-0.0.1.tgz"},"publish_time":1300751491405,"maintainers":[{"name":"kof","email":""}],"_cnpm_publish_time":1300751491405,"_hasShrinkwrap":false}},"readme":"[![build status](https://secure.travis-ci.org/kof/node-cjson.png)](http://travis-ci.org/kof/node-cjson)\n## CJSON (Commented JavaScript Object Notation) is a comments enabled json config loader.\n\nJSON has a good spec, is implemented in every language, has easy to read syntax and is much more powerful than ini files.\n\nJSON is perfect for writing config files, except of one problem - there is no comments, but sometimes config files get large and need to be commented.\n\nWell, you could just evaluate json file as a JavaScript using one-liner, right?\n\nThe purpose of this module is to avoid dirty JavaScript configs and to enable clean, consistent, secure, portable and JSON valid notation.\n\nCJSON supports JavaScript style comments: singleline \"//\" and  multiline \"/**/\". It takes care about comments inside of strings.\n\nExample of such shiny config file:\n\n```javascript\n/*\n * This is my app configuration file.\n *\n */\n{\n\t\"host\": \"localhost\",\n\t// app is listening on this port\n\t\"port\": 8888\n}\n```\n\n## API\n\n### load the module\n\tvar cjson = require('cjson');\n\n### cjson.load(path, [options]);\n\nLoad config file from given path, array of paths or directory. Second parameter is optional and can be a boolean or object.\n\n- `path` {String|Array} absolute path to the file, array of paths or directory\n- `options` {Boolean|Object} optional options. If you pass `true` as second param, its the same like `    {merge: true}` and will merge all configs together.\n\n\n`options` defaults:\n```javascript\n{\n\t// merge all passed/found config files, see `cjson.extend`\n    merge: false,\n    // allows you to do some string replacements, see `cjson.replace`.\n    replace: null,\n    // freeze config recursively, see `cjson.freeze`\n    freeze: false,\n    // you can use any other extension for your config files, f.e. .cjson\n    ext: '.json',\n    // you can use any parser you want. the default uses JSON.parse for maximum\n    // speed, if it throws it uses uses an alternative parser to give more\n    // helpful errors\n    parse: jph.parse\n}\n```\n\nExamples:\n\n```javascript\n// just one config\nvar conf = cjson.load('/path/to/your/config.json');\n\n// array of configs\nvar conf = cjson.load(['/path/to/your/config1.json', '/path/to/your/config2.json']);\n\n//output\n{\n\tconfig1: {key1: 'value1'}\n\tconfig2: {key2: 'value2'}\n}\n\n\n// use optional merge parameter\n// array of configs\nvar conf = cjson.load(['/path/to/your/config1.json', '/path/to/your/config2.json'], true);\n\n// output\n{\n\tkey1: 'value1',\n\tkey2: 'value2'\n}\n\n\n// load all config files from a directory\nvar conf = cjson.load('/path/to/your/configs');\n\n// overwriting dev config with production\nvar paths = ['/path/to/conf.json'];\nif (process.env.NODE_ENV ==='production') {\n\tpaths.push('/path/to/conf-prod.json');\n}\nvar conf = cjson.load(paths, true);\n```\n\n### cjson.extend([deep], target, object1, [objectN])\n\nMerge the contents of two or more objects together into the first object.\n\n- `deep` If true, the merge becomes recursive.\n- `target` The object to extend. It will receive the new properties.\n- `object1` An object containing additional properties to merge in.\n- `objectN` Additional objects containing properties to merge in.\n\nExample:\n\n```javascript\nvar object = cjson.extend({}, object1, object2);\n```\n\n### cjson.decomment(str)\n\nRemove JavaScript style comments, singleline - '//' and multiline - '/**/'. It takes care\nabout comments inside of strings and escaping.\n\n### cjson.parse(str, [reviver])\n\nLike `JSON.parse`, but it takes care about comments. Optional `reviver` argument\nis for `JSON.parse` method and will be called for every key and value at every level\nof the final result\n\n### cjson.replace(str, obj)\n\nReplace all strings `{{key}}` contained in `{key: 'value'}`, where `key` can be any\nproperty of passed `obj`.\n\nExample:\n```javascript\nvar str = '{\"path\": \"{{root}}/src\"}'; // json file contents\ncjson.replace(str, {root: '/usr'}); // '{\"path\": \"/usr/src\"}'\n```\n### cjson.freeze(obj)\n\nRecursively freeze an object.\n\n\n## Installation\n\n\tnpm install cjson\n","_attachments":{},"homepage":"https://github.com/kof/node-cjson#readme","bugs":{"url":"https://github.com/kof/node-cjson/issues"},"license":"MIT"}