Ways to implement a JSON RESTful service in C/C++ Ways to implement a JSON RESTful service in C/C++ json json

Ways to implement a JSON RESTful service in C/C++


You might want to take a look at Casablanca introduced in Herb Sutter's blog.


there are a small number of libraries that support creating rest services with c, e.g. restinio:

#include <restinio/all.hpp>int main(){    restinio::run(        restinio::on_this_thread()        .port(8080)        .address("localhost")        .request_handler([](auto req) {            return req->create_response().set_body("Hello, World!").done();        }));    return 0;}


You could look at ffead-cpp. Apart from providing support for json and restfull web services it also includes more features. This framework may be too heavy weight for your situation though.