#include "../json.hpp" #include #include #include enum { ARG_CMD, ARG_PATH, NUM_ARGS }; int main (int argc, char ** argv) { if (argc != NUM_ARGS) { std::cerr << "Invalid arguments. " << argv[ARG_CMD] << " " << std::endl; return EXIT_FAILURE; } try { json::tree::parse (boost::filesystem::path (argv[ARG_PATH])); } catch (json::tree::error &x) { std::cerr << "Error: " << x.what () << std::endl; return EXIT_FAILURE; } return EXIT_SUCCESS; }