I’ve got a data dump from the server using HTTP requests, a (char) array to be more specific. The data is JSON.
Could anyone recommend me a library or method to parse the data dump in to JSON or valuemap or something similar. I’m a bit unfamiliar with networking and not sure of the best approach. @stevetranby ideas?
You can try this to convert the char array to your JSON:
vector<char> *buffer = response->getResponseData();
ostringstream oss;
for (const auto &t : *buffer)
{
oss << t;
}
However, the end product of the code above is still a string. You will need to use a JSON library to parse it. For me, I use rapidJSON, since it is already in the engine.