codenothing / jsonlint

JSON Linter that allows comments
http://codenothing.github.com/jsonlint/
MIT License
32 stars 12 forks source link

Finding duplicated keys #10

Open GrimDev opened 7 years ago

GrimDev commented 7 years ago

Hi, It would be nice if the library could find the duplicated keys. Example :

{
  "myKey": value,
  "myKey": value
   ^^^^ Error duplicated key
}
DanielSWolf commented 7 years ago

That would be great! 👍

Officially, the JSON standard allows duplicates, but in practice, they are usually errors. It would be great if there was an option to disallow them.