Hello,
I am trying to remove this parameter to this jsonrpc resultjsonrpc result
{
"jsonrpc": "2.0",
"result": {
"source": "webhook",
"speech": "hello my name is shubham",
"displayText": "hello testing"
}
"id": "f2f0cca0-1f91-4e8f-b264-74e30dc457e9"
}
i need simple one object result like:
{
"speech": "hello my name is shubham",
"displayText": "hello testing",
"source": "webhook"
}
so please help me with additional parameters
here is my controller code
@ http.route ('/ userappoint / webhook_test /', type = 'json', auth = 'public', method = ['POST'], csrf = False, website = True)
def webhook_test (self, ** kw):
response = {
'speech': 'hello my name is shubham',
'displayText': 'hello testing',
'source': 'webhook'
}
return response
You should format your question with proper coding syntax
here is my Code :
@ http.route ('/ userappoint / webhook_test /', type = 'json', auth = 'public', method = ['POST'], csrf = False, website = True)
def webhook_test (self, ** kw):
response = {
'speech': 'hello my name is shubham',
'displayText': 'hello testing',
'source': 'webhook'
}
return response
how I remove additional JSON-RPC parameters in result
Did you Find any Solutions to Resolve this?