Function jsonObject


#include <lib/inc/drogon/HttpRequest.h>

virtual const std::shared_ptr< Json::Value > & jsonObject() const =0


Get the Json object of the request.

The content type of the request must be 'application/json', and the query string (the part after the question mark in the URI) must be empty, otherwise the method returns an empty shared_ptr object.


Line 283 in lib/inc/drogon/HttpRequest.h.

Add Discussion as Guest

Log in to DocsForge