The JSON specification permits duplicate keys, but doing so is almost always nearly a mistake. We can use the JSON lint library (added as dev-requirement to composer), which is now also used to decode the JSON (as it's the same step as validating the JSON). Bug: T153507 Change-Id: Ia713a1906169333c1aa2aebdc0ed060d26428d72
4 lines
39 B
JSON
4 lines
39 B
JSON
{
|
|
"name": "FooBar",
|
|
"name": "Test"
|
|
}
|