Skip to content
Snippets Groups Projects
Commit 5b1c77ff4742 authored by Bob Ippolito's avatar Bob Ippolito
Browse files

don't check dupes

git-svn-id: http://simplejson.googlecode.com/svn/trunk@25 a4795897-2c25-0410-b006-0d3caba88fa1
parent 8cda38283e68
No related branches found
No related tags found
No related merge requests found
...@@ -138,8 +138,6 @@ ...@@ -138,8 +138,6 @@
value, end = iterscan(s, idx=end, context=context).next() value, end = iterscan(s, idx=end, context=context).next()
except StopIteration: except StopIteration:
raise ValueError(errmsg("Expecting object", s, end)) raise ValueError(errmsg("Expecting object", s, end))
if key in pairs:
raise ValueError(errmsg("Duplicate property name", s, end))
pairs[key] = value pairs[key] = value
end = _w(s, end).end() end = _w(s, end).end()
nextchar = s[end:end + 1] nextchar = s[end:end + 1]
......
...@@ -48,8 +48,6 @@ ...@@ -48,8 +48,6 @@
'["Bad value", truth]', '["Bad value", truth]',
# http://json.org/JSON_checker/test/fail24.json # http://json.org/JSON_checker/test/fail24.json
"['single quote']", "['single quote']",
# Not part of the JSON spec
'{"a": 1, "a": 1}',
] ]
SKIPS = { SKIPS = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment