joaquimserafim / is-json

check if a string is a valid JSON string in JavaScript without using Try/Catch
ISC License
74 stars 15 forks source link

Duplicate keys in json #13

Open abdelrahmanahmed opened 5 years ago

abdelrahmanahmed commented 5 years ago

I know in JSON spec that there is no strict rule to say if duplicate keys in a json is a valid json or not, but i believe it will be a good feature if we add a flag to check if we want to validate against duplicate keys or not.

joaquimserafim commented 5 years ago

Hi mate will be more than happy to accept a PR :) thanks