there is a json file like this, without bom, use gbk code set. The boost::property_tree can parse it successfully in the majority.
try {
boost::property_tree::read_json(filename, tree);
}
catch (exception &e) {
cerr << e.what() << endl;
}
However, if the file has chinese character"ċ"(c0fa)or"çı"(c040), the property_tree will throw exception"invalid code sequence"