Function getJsonError

Synopsis

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

virtual const std::string & getJsonError() const =0

Description

Get the error message of parsing the JSON body received from peer. This method usually is called after getting a empty shared_ptr object by the getJsonObject() method.

Returns
const std::string& The error message. An empty string is returned when no error occurs.

Source

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






Add Discussion as Guest

Log in