# Improper JSON Responses

**URL:** <https://devforum.zoom.us/t/improper-json-responses/1657>\
**Category:** API and Webhooks\
**Created:** [August 21, 2018, 7:52pm UTC](https://devforum.zoom.us/t/improper-json-responses/1657 "2018-08-21T19:52:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeffery\_Thompson1](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@Jeffery\_Thompson1](https://devforum.zoom.us/u/Jeffery_Thompson1)\
**Post date:** [August 21, 2018, 7:52pm UTC](https://devforum.zoom.us/t/improper-json-responses/1657/1 "2018-08-21T19:52:49Z")

</div>

When trying to parse the JSON responses from API, I’m getting a few errors. I’ve mapped your responses to classes in C# and am trying to deserialize them with Newtonsoft’s [Json.NET](http://Json.NET), but in a few responses I’m getting improperly formatted JSON.

For example, in this response, the Status.message value has improperly escaped quotations.

```
{
  "CallDisconnectResult": {},
  "Status": {
    "message": "Result reason: "Must be in meeting to disconnect"",
    "state": "Error"
  },
  "Sync": true,
  "topKey": "CallDisconnectResult",
  "type": "zCommand"
}

```

Double quotes need to be properly escaped with backslashes when inside a JSON string.

I’m also running into issues with the “zStatus Video Camera Line” command which has unescaped backslashes in it: &nbsp;“\?\usb#vid\_25c1&pid\_000d&mi\_00#6&bf5c205&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global”. This causes Newtonsoft to try to interpret \u… as an escaped unicode sequence rather than the literal “\usb”.

---

<div class="post-metadata">

**Author:** ![Scott\_Firestone](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/scott_firestone/32/568_2.png) [@Scott\_Firestone](https://devforum.zoom.us/u/Scott_Firestone)\
**Post date:** [August 21, 2018, 11:05pm UTC](https://devforum.zoom.us/t/improper-json-responses/1657/2 "2018-08-21T23:05:24Z")

</div>

Ok, I added a bug for this:&nbsp;JSON Escape problem: ZOOM-51731. And I added it to the fix list for the roadmap releases:

[https://support.zoom.us/hc/en-us/community/posts/360017969406-ZR-CSAPI-Roadmap-detail](https://support.zoom.us/hc/en-us/community/posts/360017969406-ZR-CSAPI-Roadmap-detail)

&nbsp;

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 5:53pm UTC](https://devforum.zoom.us/t/improper-json-responses/1657/3 "2020-08-21T17:53:44Z")

</div>

Closed on August 21, 2020, 5:53pm UTC


