parse arguments from request with content in json
accroading to request Accept header giving json response and content-type header, arguments update with request body if content type is json