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:
1{2 "event_id": "01F0FGCVTX5CZMHS9D5M4KYT4J",3 "event_type": "form_response",4 "form_response": {5 "form_id": "Hi1JKL",6 "token": "z43r7ao5q58gjjz2ysudz43r75kz4l4j",7 "landed_at": "2021-03-11T02:03:07Z",8 "submitted_at": "2021-03-11T02:03:38Z",9 "definition": {10 "id": "Hi1JKL",11 "title": "Feature Request Form",12 "fields": [13 {14 "id": "p3MzDSAyO0WC",15 "title": "Priority",16 "type": "dropdown",17 "ref": "804f1730-1a92-4083-b379-25ed5651dcda",18 "properties": {}19 },20 {21 "id": "eIorApWbt9jh",22 "title": "Business Impact",23 "type": "dropdown",24 "ref": "1733fb40-4fca-4025-b2f6-26f8d9f5a508",25 "properties": {}26 },27 {28 "id": "FHt4hjLCX6Zd",29 "title": "Email:",30 "type": "short_text",31 "ref": "66670e48-f721-4e3d-af3a-a3a9b8af9621",32 "properties": {}33 },34 {35 "id": "JVb7hYTnvnLd",36 "title": "Request one liner",37 "type": "long_text",38 "ref": "edf52b2f-46d5-4273-a346-1954d62fe219",39 "properties": {}40 },41 {42 "id": "G4IR3VG6xESP",43 "title": "Summary and Use-case",44 "type": "long_text",45 "ref": "e73e3702-ee9a-4338-a648-db76fd5c1bff",46 "properties": {}47 }48 ]49 },50 "answers": [51 {52 "type": "choice",53 "choice": {54 "label": "P1 - Show Stopper"55 },56 "field": {57 "id": "p3MzDSAyO0WC",58 "type": "dropdown",59 "ref": "804f1730-1a92-4083-b379-25ed5651dcda"60 }61 },62 {63 "type": "choice",64 "choice": {65 "label": "Production on hold"66 },67 "field": {68 "id": "eIorApWbt9jh",69 "type": "dropdown",70 "ref": "1733fb40-4fca-4025-b2f6-26f8d9f5a508"71 }72 },73 {74 "type": "text",75 "text": "saqlain.kali@contentstack.com",76 "field": {77 "id": "FHt4hjLCX6Zd",78 "type": "short_text",79 "ref": "66670e48-f721-4e3d-af3a-a3a9b8af9621"80 }81 },82 {83 "type": "text",84 "text": "Typeform Test",85 "field": {86 "id": "JVb7hYTnvnLd",87 "type": "long_text",88 "ref": "edf52b2f-46d5-4273-a346-1954d62fe219"89 }90 },91 {92 "type": "text",93 "text": "Zendesk tickek body",94 "field": {95 "id": "G4IR3VG6xESP",96 "type": "long_text",97 "ref": "e73e3702-ee9a-4338-a648-db76fd5c1bff"98 }99 }100 ]My code is unable to parse the body as the JSON is incorrect. Am I missing anything here?