Return true if file is json.
| 10 | namespace { |
| 11 | // Return true if file is json. |
| 12 | bool isJSON(const std::string& filePath) |
| 13 | { |
| 14 | return boost::algorithm::iends_with(filePath, ".json"); |
| 15 | } |
| 16 | |
| 17 | // Return true if file is xml. |
| 18 | bool isXML(const std::string& filePath) |