posix4e / json-smart

Automatically exported from code.google.com/p/json-smart
1 stars 0 forks source link

Duplicate names for property should not be permitted as per RFC 4627 #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
JSONValue.parseStrict("{\"name\":123, \"name\":123}");

What is the expected output? What do you see instead?
As per RFC 4627, duplicate names are not allowed.  (2.2 ... The names within an 
object SHOULD be unique.).  An error should occur.

What version of the product are you using? On what operating system?
Java 1.6, Windows 7, Trunk as of June 13th 2011

Please provide any additional information below.

Original issue reported on code.google.com by jean.cro...@gmail.com on 14 Jun 2011 at 12:32

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by uriel.chemouni on 15 Jun 2011 at 9:35

GoogleCodeExporter commented 9 years ago

Original comment by uriel.chemouni on 15 Jun 2011 at 9:39

GoogleCodeExporter commented 9 years ago

Original comment by uriel.chemouni on 15 Jun 2011 at 10:49

GoogleCodeExporter commented 9 years ago

Original comment by uriel.chemouni on 15 Jun 2011 at 1:42