Description
We have one app running in production which is receiving webhook notifications where the duration is of type string. See example below:
{“event”:“meeting.ended”,“payload”:{“account_id”:“t1Dv-o8mQzK56C1hAoBSlQ”,“object”:{“duration”:“0”,“start_time”:“2020-08-24T07:09:05Z”,“end_time”:“2020-08-24T07:09:07Z”,“topic”:“AQIL ALGHAMDI’s Personal Meeting Room”,“id”:“3154675765”,“type”:“4”,“uuid”:“vlgZ2rDPTuiABvoiY0VtuA==”,“host_id”:“gUykRDzORQmTS_0dkOgh2Q”}}}
I also tested this on my local but here I get the duration as type int:
{“event”:“meeting.ended”,“payload”:{“account_id”:“TUWsvHGOTO2_uieYoHskzg”,“object”:{“duration”:0,“start_time”:“2020-08-24T14:38:58Z”,“timezone”:“America/New_York”,“end_time”:“2020-08-24T14:39:32Z”,“topic”:“Prashant Saraswat’s Personal Meeting Room”,“id”:“3454782326”,“type”:4,“uuid”:"/ZfYlY5AQSiZOdL8JlZbfA==",“host_id”:“EyYbEualQp-GQ6L8PlFkfA”}}}
This means that the json deserialization fails on our end in at least on case. Please advise.