umbrae/jsonlintdotcom — Issue #8: Should fail or warn on duplicate field name
Author: benkant
Created: 2011-11-17 22:07:01+00:00
State: open

When I validate the following code on JSONlist.com:

```javascript
{
"keya": 1,
"keyb": 0,
"keya": 0
}
```

It reports valid JSON. The last value "keya" is taken and the previous is ignored. Some JSON libraries do the same, but AFNetworking in particular fails for duplicate field names.

JSlint reports:

> Problem at line 4 character 5: Duplicate 'keya'.

> "keya": 0

> JSON: bad.