How to create and parse hierarchical/nested JSON with Poco C++?
问题 Edited to simplify and show my EXACT code. I have the following data that I need to serialize to JSON as well as parse from JSON. string name; std::map<string, string> metaData; I need the JSON to be nested/hierarchical like this: { "name":"john smith" "metadata": { "age":45, "middle_name":"william", }, } Here is my EXACT code: void DeserializeFromJSON(string &jsonString) { // Parse the JSON Poco::JSON::Parser jsonParser; Poco::Dynamic::Var parsedJSON = jsonParser.parse(jsonString); Poco: