prevent json objects with repeated keys from being emitted from the

parser
This commit is contained in:
alisdair sullivan 2014-06-15 22:12:07 +00:00
parent 4df8e5092a
commit 4ad9c38cb9
3 changed files with 98 additions and 77 deletions

View file

@ -250,7 +250,9 @@ to understand and they prevented evolution of the encoding and decoding code
the shorthand form of property lists using atoms as properties so all
properties must be tuples. all keys must be encoded as in `string` or as
atoms or integers (which will be escaped and converted to binaries for
presentation to handlers). values should be valid json values
presentation to handlers). values should be valid json values. repeated
keys are tolerated in json text decoded to erlang terms but are not allowed
in erlang terms encoded to json
### incomplete input ###