There is no “error” if you use more than one key with the same name, but in JSON, the last key with the same name is the one that is going to be used . In your case, the key “name” would be better to contain an array as it’s value, instead of having a number of keys “name”.
Read moreIs JSON order sensitive?
Any error or exception? The JSON RFC (RFC 4627) says that order of object members does not matter .
Read moreIs JSON object key case-sensitive?
Databases have a variety of sensitivities. SQL, by default, is case insensitive to identifiers and keywords, but case sensitive to data. JSON is case sensitive to both field names and data .
Read moreIs HTML a case-sensitive language?
New web designers may wonder whether HTML tags are case sensitive. While the short answer is that HTML tags aren’t case sensitive , there are important rules and best practices to consider when writing HTML markup.
Read moreCan JavaScript object be a key?
The keys are always strings. This means you can’t use an object instance’s identity as a key .
Read moreIs hasOwnProperty case sensitive?
Yes, it’s case sensitive , because JavaScript is case sensitive.
Read moreIs JSON object key case sensitive?
Databases have a variety of sensitivities. SQL, by default, is case insensitive to identifiers and keywords, but case sensitive to data. JSON is case sensitive to both field names and data .
Read more