def post(self):
        """
        Check if the json request is valid.  If it is, do the rpc and return
        the result as JSON.
        """
        # If "id" is not provided, then we are not supposed to return any type
        # of response to the client as it doesn't care about the response.
        # Therefore, we don't care either and won't waste any more resources.
        if(not "id" in request.json):
            return

        self.json_response = {"jsonrpc":"2.0"}
        self.error = self._is_jsonrpc_request()
        if(not self.error):
            self.error = self._check_method_and_params()

        self.json_response["id"] = request.json["id"]
        if(self.error):
            self.json_response["error"] = self.error
            return self.make_post_response()

        # pass control to the subclass
        self.echo()

        return self.make_post_response()
dataset/ETHPy150Open pyjs/pyjs/examples/misc/flaskexamples/flaskcelery/flask_source/method_views.py/JSONRPCView.post/original