Read request body in order to obtain json data rather than relying on .body attr.