Try to decode JSON the request.