// ----------------------------------------------------------------------- /* json_read.cpp May/28/2018 */ // ----------------------------------------------------------------------- #include #include #include #include #include #include "json11.hpp" // ----------------------------------------------------------------------- using namespace std; using namespace json11; typedef map Unit; extern string file_to_str_proc (char file_in[]); extern void dict_display_proc (map dict_aa); extern map json_to_dict_proc (string str_json); // ----------------------------------------------------------------------- int main (int argc, char* argv[]) { cerr << "*** 開始 ***\n"; char file_in[160]; strcpy (file_in,argv[1]); string str_json = file_to_str_proc (file_in); map dict_aa = json_to_dict_proc (str_json); dict_display_proc (dict_aa); cerr << "*** 終了 ***\n"; return 0; } // -----------------------------------------------------------------------