Answer the question
In order to leave comments, you need to log in
How to get all duplicated keys from JSON file?
There is a JSON file with no attachment, i.e. the value of each key is not an object. There are duplicate keys in this file, which JS in the form of JSON.parse ignores, but this leads to problems. I would like to find all duplicate pairs of values. How can I do that? Desirable implementation on node.js. Maybe there is an already written json linter that can do what is described above, I just could not find it.
Example:
{
"x": 4,
"x": 5
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question