Subject: [Boost-bugs] [Boost C++ Libraries] #6351: Better JSON parser
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-01-03 08:58:50
#6351: Better JSON parser
------------------------------+---------------------------------------------
Reporter: nn-mail@⦠| Owner: cornedbee
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: property_tree
Version: Boost 1.49.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
JSON parser in property_tree doesn't parse numbers and bools as their
type.
Instead it stores them as string.
property_tree for JSON could be defined in other way:
{{{
#!python
typedef boost::variant<int, long, std::string> base_json_type;
typedef boost::variant<
base_json_type,
std::vector<base_json_type>
> composite_json_type;
typedef boost::basic_ptree<std::string, composite_json_type> json_ptree;
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6351> 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:08 UTC