You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.
When I validate the following code on JSONlist.com:
{"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.
The text was updated successfully, but these errors were encountered:
then it will call it valid but the reformatting engine will drop the duplicate. I think it should just warn cuz this is valid JSON for us, but the reformat should not drop the dup for you
When I validate the following code on JSONlist.com:
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:
The text was updated successfully, but these errors were encountered: