At the moment I am working on a c++ project, writing the server side of an API using the CPPRESTSDK (a.k.a. Casablanca).
Serializing values such as int, double etc. is already implemented in the cpprestsdk library.
I wanted to ask now, if there is any way to serialize a std::vector
to a json::value
at the client, make a reqeust and then deserialize it at the server?
Something like:
http_client client(U("http://localhost"));
json::value jsonVector(std::vector);
make_task_request(client, methods::POST, jsonVector)
Thank you for everything in advance!