Oct 13, 2016 at 3:27 PM
Edited Oct 17, 2016 at 12:22 PM
So I'm lost in my implementation of the REST SDK (v2.8.0 NuGet) for an Http_Listener implemented in my C++ MFC app.
Actually I'm calling perfectly the handlers GET/POST/PUT/DELETE but I can only answer to the requests with strings :
message.reply(status_codes::OK, U("Hello, World! handle_delete"));
I use Postman to send POST requests with some JSON data as you can see:
Image on Imgur
But I tried a lot of times to find a way to work with the JSON data that I recieve. But nothing actually helped me to understand how to achieve it.
Do you have any Http_Listener sample working with json. I can't find any. Because I read these pages :
Old Msdn Doc
OLD EXAMPLE : Full-fledged client-server example with C++ REST SDK 1.1.0
and many other documentations on this website...
So I don't know what to use as functions or anything else to get the value from the json, make some actions in my MFC app and then send an answer in json.
There is a huge lack of precise documentation on the Http_listener. With the 1 or 2 examples we can see how it works globally. But if I want to implement for example json. Nothing appear on this website after a lot of searches...
So please give me any help to find how can I process recieved json data and how can I send some as answer.
Thank you a lot for your help.