共用方式為


http_request::extract_json Method

Extracts the body of the request message into a json value, checking that the content type is application\json. A body can only be extracted once because in some cases an optimization is made where the data is 'moved' out.

pplx::task<json::value> extract_json() const;

Return Value

JSON value from the body of this message.

Requirements

Header: http_msg.h

Namespace: web::http

See Also

Reference

http_request Class