Search code examples
c++jsonrestwebservice-client

creating rest webservice in c/c++ accepting JSON


can anyone please suggest me some good link to create rest webservice accepting JSON in c/c++.

I want my webservice to accept JSON, do some modifications on the received JSON and send the modified JSON to another rest webservice.


Solution

  • Try looking at the first answer : How to Create Restful Web Services using c++ language and JSON Parser

    It gives multiple libraries for what you're looking as well as JSON parsing library

    For JSON I personally have used https://github.com/nlohmann/json which i found very simple and well explained

    Hope this gives you some guidance