Skip to content

Instantly share code, notes, and snippets.

@SolemnJoker
Last active November 7, 2020 06:27
Show Gist options
  • Save SolemnJoker/1bd823266baa0dff33a0f8cdd6977b7c to your computer and use it in GitHub Desktop.
Save SolemnJoker/1bd823266baa0dff33a0f8cdd6977b7c to your computer and use it in GitHub Desktop.
[rapidjson] #c++ #json
//#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