#4387 closed Bugs (fixed)
property_tree json_grammar should accept array at root level
Reported by: | Owned by: | Sebastian Redl | |
---|---|---|---|
Milestone: | Boost 1.44.0 | Component: | property_tree |
Version: | Boost 1.42.0 | Severity: | Problem |
Keywords: | property_tree json read_json | Cc: |
Description
According to http://www.ietf.org/rfc/rfc4627.txt?number=4627, section 2:
"A JSON text is a serialized object or array."
However, the implementation of the json_grammar in json_parser_read.hpp does not accept an array at the root level. Rather, it expects an object only.
This means read_json cannot successfully parse the following, even though according to rfc4627 it is valid jSON:
["apple","orange","tomato"]
Change History (3)
comment:1 by , 12 years ago
comment:2 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 11 years ago
Note:
See TracTickets
for help on using tickets.
Fixed on trunk in r68992.