https://github.com/nlohmann/json


C++11/14문법을 퍼부어 사용한 놈인데

헤더파일 하나면 사용가능, MIT라이센스여서 소스공개도 필요없음

단점은 VS는 2015이상만 가능하다는 거?

        view->ClearUserFineView();
        std::string utf8str = str.ToStdString();
        auto res = json::parse(utf8str);
        wxVector<User> userList;
        for (auto it : res)
        {
            std::string name = it.at("name");
            wxString wname = wxString::FromUTF8(name.c_str(), name.size());
            User user;
            user.SetName(wname);
            user.SetIdx(it.at("idx"));
            userList.push_back(user);
        }
        document.SetUserList(userList);
        view->SetUserFineView(document);

존나 신박하다