A json handler that has an option to check for duplicated keys
npm install json-validator-duplicated-keysA json handler that has an option to check for duplicated keys
This is a fork of json-duplicate-key-handle by KhanhTrinh2094 licensed under MIT license
Git of original: https://github.com/KhanhTrinh2094/json-duplicate-key-handle
NPM page of original: https://www.npmjs.com/package/json-duplicate-key-handle
npm install json-validator-duplicated-keysjs.validate(jsonString, allowDuplicatedKeys)
Validates a json string and returns error if any, undefined if the json string is valid.
#### jsonString
Type: StringJSON string to parse
#### allowDuplicatedKeys
Type:
BooleanDefault:
false`Whether duplicated keys are allowed in an object or not