I have a c++ application in Visual C++ 2013 that uses cpprestsdk to get info from server. It is working fine (an example here)
Now, I am using an external third party API and this API has a method that return an string as follows:
{"result":{"data":[{"PetId":"Pet1","PetName":"Name1","PetCategory":"1"},{"PetId":"Pet2","PetName":"Name2","PetCategory":"2"},{"PetId":"Pet3","PetName":"Name3","PetCategory":"3"}],"code":"200","msg":"Operation succeeded"}}
How can I convert this string to web::json using cpprestsdk in order to iterate over "pet collection"?