Is this valid json?

{
    "a" : "x",
    "a" : "y"
}

http://jsonlint.com/ says yes.

http://www.json.org/ doesn’t say anything about it being forbidden.

But obviously it doesn’t make much sense, does it?
Most implementations probably use a hashtable so it is being overriden anyways.

12 Answers
12

Leave a Reply

Your email address will not be published. Required fields are marked *