[Boost-bugs] [Boost C++ Libraries] #4387: property_tree json_grammar should accept array at root level

Subject: [Boost-bugs] [Boost C++ Libraries] #4387: property_tree json_grammar should accept array at root level
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-06-28 21:55:37


#4387: property_tree json_grammar should accept array at root level
---------------------------------------------+------------------------------
 Reporter: Dan Teitsort <dan@…> | Owner: cornedbee
     Type: Bugs | Status: new
Milestone: Boost 1.44.0 | Component: property_tree
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: property_tree json read_json |
---------------------------------------------+------------------------------
 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"]

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4387>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC