I'm new to boost library and I really need some help. In my case, I need to use boost lib to parse an external JSON file with comments(eg. "//" symbol). I use the following code to parse the unformatted json.
boost::property_tree::ptree root;
boost::property_tree::read_json<boost::property_tree::ptree>(file_path,root);
It fails since the json file is not a standard file. I also noticed the reference in Are comments allowed in a JSON file for boost read_json?. However. I still use this unformatted file for my case.
My question is whether there is a 'ignore_comments' like nlohmann lib in boost lib or not. How I can handle this issue under the condition of boost lib.