Skip to content

Instantly share code, notes, and snippets.

@ShaneTsui
Last active November 13, 2019 03:14
Show Gist options
  • Select an option

  • Save ShaneTsui/f7003bdb2625d3311d0b640b262bb34d to your computer and use it in GitHub Desktop.

Select an option

Save ShaneTsui/f7003bdb2625d3311d0b640b262bb34d to your computer and use it in GitHub Desktop.
translate rapidjson to std::string
rapidjson::StringBuffer sb;
rapidjson::Writer<rapidjson::StringBuffer> writer(sb);
metadata->Accept(writer);
std::string s = sb.GetString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment