Last active
November 7, 2020 06:27
-
-
Save SolemnJoker/1bd823266baa0dff33a0f8cdd6977b7c to your computer and use it in GitHub Desktop.
[rapidjson] #c++ #json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//#include "rapidjson/document.h" | |
rapidjson::Document doc; | |
doc.Parse(json_str.c_str()); | |
rapidjson::Value array_val = doc["arr_val_name"].GetArray(); | |
int int_val = doc["int_val_name"].GetInt(); | |
string str_val = doc["str_val_name"].GetString(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment