Boost C++ Libraries: Ticket #6351: Better JSON parser https://svn.boost.org/trac10/ticket/6351 <p> JSON parser in property_tree doesn't parse numbers and bools as their type. Instead it stores them as string. </p> <p> property_tree for JSON could be defined in other way: </p> <div class="wiki-code"><div class="code"><pre><span class="n">typedef</span> <span class="n">boost</span><span class="p">::</span><span class="n">variant</span><span class="o">&lt;</span><span class="nb">int</span><span class="p">,</span> <span class="nb">long</span><span class="p">,</span> <span class="n">std</span><span class="p">::</span><span class="n">string</span><span class="o">&gt;</span> <span class="n">base_json_type</span><span class="p">;</span> <span class="n">typedef</span> <span class="n">boost</span><span class="p">::</span><span class="n">variant</span><span class="o">&lt;</span> <span class="n">base_json_type</span><span class="p">,</span> <span class="n">std</span><span class="p">::</span><span class="n">vector</span><span class="o">&lt;</span><span class="n">base_json_type</span><span class="o">&gt;</span> <span class="o">&gt;</span> <span class="n">composite_json_type</span><span class="p">;</span> <span class="n">typedef</span> <span class="n">boost</span><span class="p">::</span><span class="n">basic_ptree</span><span class="o">&lt;</span><span class="n">std</span><span class="p">::</span><span class="n">string</span><span class="p">,</span> <span class="n">composite_json_type</span><span class="o">&gt;</span> <span class="n">json_ptree</span><span class="p">;</span> </pre></div></div> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6351 Trac 1.4.3 Sebastian Redl Tue, 07 Jul 2015 14:04:55 GMT <link>https://svn.boost.org/trac10/ticket/6351#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6351#comment:1</guid> <description> <p> The new JSON parser's event interface is much better suited to reading JSON faithfully. I just need to define a front-end. </p> </description> <category>Ticket</category> </item> </channel> </rss>