Does JSON syntax allow duplicate keys in an object?
The short answer: Yes but is not recommended. The long answer: It depends on what you call valid… [ECMA-404][1] “The JSON Data Interchange Syntax” doesn’t say anything about duplicated names (keys). However, [RFC 8259][2] “The JavaScript Object Notation (JSON) Data Interchange Format” says: The names within an object SHOULD be unique. In this context SHOULD … Read more