# Invalid JSON format

**URL:** <https://devforum.zoom.us/t/invalid-json-format/40347>\
**Category:** API and Webhooks\
**Created:** [January 12, 2021, 1:29pm UTC](https://devforum.zoom.us/t/invalid-json-format/40347 "2021-01-12T13:29:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel.kohn](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel.kohn/32/18306_2.png) [@daniel.kohn](https://devforum.zoom.us/u/daniel.kohn)\
**Post date:** [January 12, 2021, 1:29pm UTC](https://devforum.zoom.us/t/invalid-json-format/40347/1 "2021-01-12T13:29:38Z")

</div>

Our webhook application stopped working after the weekend. You apparently changed the JSON format to have single quotes ’ instead of double quotes "

**Error**  
JSON standard allows only double quoted string as property key  
JSON standard does not allow single quoted strings

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
Webhook

**How To Reproduce (If applicable)**  
Try getting the json of a webhook request.  
Specifically the event subscription when a user joins or leaves the meeting.

Is this an intended change or will it be fixed?

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [January 13, 2021, 9:23pm UTC](https://devforum.zoom.us/t/invalid-json-format/40347/2 "2021-01-13T21:23:45Z")

</div>

Hi @daniel.kohn,

Thank you for reaching out about this—Can you please share which webhook you’re seeing this on? If you could provide a sample payload, this will help us to take a closer look.

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![daniel.kohn](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel.kohn/32/18306_2.png) [@daniel.kohn](https://devforum.zoom.us/u/daniel.kohn)\
**Post date:** [January 14, 2021, 2:33pm UTC](https://devforum.zoom.us/t/invalid-json-format/40347/3 "2021-01-14T14:33:17Z")

</div>

Hey Will,

I am using a webhook with the event subscriptions “meeting.participant\_joined” and “meeting.participant\_left”. To get the json data I am using Python with request().get\_json() which worked without problems until recently.

Here’s a payload sample:  
`{'payload': {'account_id': 'XXXXX', 'object': {'uuid': 'XXXXX==', 'participant': {'user_id': '16XXXXX', 'user_name': 'XXX', 'id': 'XXXX', 'join_time': '2021-01-12T12:40:04Z', 'email': 'XXXXX'}, 'id': 'XXXX', 'type': 8, 'topic': 'Virtual-Office ', 'host_id': 'XXXXX', 'duration': 1410, 'start_time': '2021-01-12T12:40:04Z', 'timezone': 'Europe/Berlin'}}, 'event_ts': 1610455207456, 'event': 'meeting.participant_joined'}`

Thanks,  
Daniel

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [January 14, 2021, 11:32pm UTC](https://devforum.zoom.us/t/invalid-json-format/40347/4 "2021-01-14T23:32:23Z")

</div>

Hey @daniel.kohn,

Thank you for providing additional information. I tested this internally and wasn’t able to reproduce the issue. It seems this is related to the Python code itself. I’m by no means an expert when it comes to Flask or Python but some initial digging indicated that the `Flask.request().get_json()` function actually [returns a Python class](https://www.kite.com/python/docs/flask.request.get_json) instead of JSON.

This is covered in this Stack Overflow post as well:

> <https://stackoverflow.com/questions/33418874/python-requests-json-returns-single-quote>

I hope that helps! Let me know if you have any questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [February 14, 2021, 9:32am UTC](https://devforum.zoom.us/t/invalid-json-format/40347/5 "2021-02-14T09:32:25Z")

</div>

Closed on February 14, 2021, 9:32am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
