The enum keyword is used to restrict a value to a fixed set of values . It must be an array with at least one element, where each element is unique.
Read moreAre Keys unique in JSON?
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 more