Reading JSON file with C++ and BOOST

后端 未结 3 1378
青春惊慌失措
青春惊慌失措 2020-12-02 01:33

An HTTP server sends me a JSON response (a string) like this :

{
    \"folders\" :
    [{
            \"id\" : 109,
            \"parent_id\" : 110,
                 


        
3条回答
  •  [愿得一人]
    2020-12-02 01:41

    Use Boost's built-in json parser to property tree:

    http://www.boost.org/doc/libs/1_57_0/doc/html/boost_propertytree/parsers.html#boost_propertytree.parsers.json_parser

提交回复
热议问题