{"_id":"json-duplicate-key-handle","_rev":"2-e1da2d54403a835652c6fbe45554ee32","name":"json-duplicate-key-handle","description":"A json handler that has an option to check for duplicated keys","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"author":{"name":"trinh.nck"},"name":"json-duplicate-key-handle","description":"A json handler that has an option to check for duplicated keys","version":"1.0.0","repository":{"type":"git","url":"git+https://github.com/KhanhTrinh2094/json-duplicate-key-handle.git"},"dependencies":{"backslash":"^0.2.0"},"devDependencies":{"chai":"^3.5.0","gulp":"^3.9.1","gulp-mocha":"^2.2.0","mocha":"^2.4.5"},"homepage":"https://github.com/KhanhTrinh2094/json-duplicate-key-handl","keywords":["jsonhandler","json","handle","duplicate"],"license":"MIT","main":"index.js","maintainers":[{"name":"trinh.nck","email":"trinh.nck@gmail.com"}],"scripts":{"test":"gulp"},"gitHead":"1996072ba39763081e0bf0db093a602e1760d9b4","bugs":{"url":"https://github.com/KhanhTrinh2094/json-duplicate-key-handle/issues"},"_id":"json-duplicate-key-handle@1.0.0","_shasum":"0678bd17822d23d8c0d0958b43011875fa37f363","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.3","_npmUser":{"name":"trinh.nck","email":"trinh.nck@gmail.com"},"dist":{"shasum":"0678bd17822d23d8c0d0958b43011875fa37f363","tarball":"https://registry.npmjs.org/json-duplicate-key-handle/-/json-duplicate-key-handle-1.0.0.tgz","integrity":"sha512-OLIxL+UpfwUsqcLX3i6Z51ChTou/Vje+6bSeGUSubj96dF/SfjObDprLy++ZXYH07KITuEzsXS7PX7e/BGf4jw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9j+z5aO5WH7RYIRaMmrwKBBjnW1AbNl42q84lpIKClAIgFahRX9ZTgqN2tS0iOohURvgNR69ei2d3UuWw6ZsLmZ8="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-duplicate-key-handle-1.0.0.tgz_1507699383931_0.8879088256508112"}}},"readme":"# json-dup-key-validator [![NPM version](https://img.shields.io/npm/v/json-duplicate-key-handle.svg)](https://www.npmjs.com/package/json-duplicate-key-handle) [![Build Status](https://travis-ci.org/jackyjieliu/json-duplicate-key-handle.svg?branch=master)](https://travis-ci.org/jackyjieliu/json-duplicate-key-handle)\n\nA json handler that has an option to check for duplicated keys\n\n## Install\n`npm install json-duplicate-key-handle`\n## Usage\n```js\nvar jsonHandler = require('json-duplicate-key-handle');\n\n// Returns error or undefined if json is valid\njsonHandler.validate(jsonString, allowDuplicatedKeys);\n\n// Returns the object and handle if duplicate key\njsonHandler.parse(jsonString, allowDuplicatedKeys);\n```\n## API\n## .validate(jsonString, allowDuplicatedKeys)\nValidates a json string and returns error if any, undefined if the json string is valid.\n#### jsonString\nType: `String`\n\nJSON string to parse\n#### allowDuplicatedKeys\nType: `Boolean`\n\nDefault: `false`\n\nWhether duplicated keys are allowed in an object or not\n\n## .parse(jsonString, allowDuplicatedKeys)\nParses a json string and returns the parsed result\n#### jsonString\nType: `String`\n\nJSON string to parse\n#### allowDuplicatedKeys\nType: `Boolean`\n\nDefault: `false`\n\nWhether duplicated keys are allowed in an object or not","maintainers":[{"name":"trinh.nck","email":"trinh.nck@gmail.com"}],"time":{"modified":"2022-06-19T06:14:42.633Z","created":"2017-10-11T05:23:03.993Z","1.0.0":"2017-10-11T05:23:03.993Z"},"homepage":"https://github.com/KhanhTrinh2094/json-duplicate-key-handl","keywords":["jsonhandler","json","handle","duplicate"],"repository":{"type":"git","url":"git+https://github.com/KhanhTrinh2094/json-duplicate-key-handle.git"},"author":{"name":"trinh.nck"},"bugs":{"url":"https://github.com/KhanhTrinh2094/json-duplicate-key-handle/issues"},"license":"MIT","readmeFilename":"README.md"}