I’m using webhooks to fetch the entry info on submit. However, the payload send by Typeform is incorrect and is missing closing brackets.
Here is the payload I’m getting from Typeform:
{
"event_id": "01F0FGCVTX5CZMHS9D5M4KYT4J",
"event_type": "form_response",
"form_response": {
"form_id": "Hi1JKL",
"token": "z43r7ao5q58gjjz2ysudz43r75kz4l4j",
"landed_at": "2021-03-11T02:03:07Z",
"submitted_at": "2021-03-11T02:03:38Z",
"definition": {
"id": "Hi1JKL",
"title": "Feature Request Form",
"fields": [
{
"id": "p3MzDSAyO0WC",
"title": "Priority",
"type": "dropdown",
"ref": "804f1730-1a92-4083-b379-25ed5651dcda",
"properties": {}
},
{
"id": "eIorApWbt9jh",
"title": "Business Impact",
"type": "dropdown",
"ref": "1733fb40-4fca-4025-b2f6-26f8d9f5a508",
"properties": {}
},
{
"id": "FHt4hjLCX6Zd",
"title": "Email:",
"type": "short_text",
"ref": "66670e48-f721-4e3d-af3a-a3a9b8af9621",
"properties": {}
},
{
"id": "JVb7hYTnvnLd",
"title": "Request one liner",
"type": "long_text",
"ref": "edf52b2f-46d5-4273-a346-1954d62fe219",
"properties": {}
},
{
"id": "G4IR3VG6xESP",
"title": "Summary and Use-case",
"type": "long_text",
"ref": "e73e3702-ee9a-4338-a648-db76fd5c1bff",
"properties": {}
}
]
},
"answers": [
{
"type": "choice",
"choice": {
"label": "P1 - Show Stopper"
},
"field": {
"id": "p3MzDSAyO0WC",
"type": "dropdown",
"ref": "804f1730-1a92-4083-b379-25ed5651dcda"
}
},
{
"type": "choice",
"choice": {
"label": "Production on hold"
},
"field": {
"id": "eIorApWbt9jh",
"type": "dropdown",
"ref": "1733fb40-4fca-4025-b2f6-26f8d9f5a508"
}
},
{
"type": "text",
"text": "saqlain.kali@contentstack.com",
"field": {
"id": "FHt4hjLCX6Zd",
"type": "short_text",
"ref": "66670e48-f721-4e3d-af3a-a3a9b8af9621"
}
},
{
"type": "text",
"text": "Typeform Test",
"field": {
"id": "JVb7hYTnvnLd",
"type": "long_text",
"ref": "edf52b2f-46d5-4273-a346-1954d62fe219"
}
},
{
"type": "text",
"text": "Zendesk tickek body",
"field": {
"id": "G4IR3VG6xESP",
"type": "long_text",
"ref": "e73e3702-ee9a-4338-a648-db76fd5c1bff"
}
}
]
My code is unable to parse the body as the JSON is incorrect. Am I missing anything here?