rikitiki  v0.1.67
Build C++ web server modules that allow easy routing and deployment.
JsonCPP

The JsonCPP extension lets you seamlessly write and read from connection contexts with overloads to the appropriate stream operators.

For example:

void operator()(ConnContext& ctx){
JsonCpp::Value v;
ctx >> v;
ctx << v;
}

First reads a json object from the request payload, and then writes out that json object back to the response stream. If the payload is not a valid json object, the stream operator will throw a HandlerException with a return status of 'Bad Request'; with the parsing error information.

See Also
examples/rest.h