# Format json returns onUnsupported Command

**URL:** <https://devforum.zoom.us/t/format-json-returns-onunsupported-command/2785>\
**Category:** API and Webhooks\
**Created:** [December 20, 2018, 11:44am UTC](https://devforum.zoom.us/t/format-json-returns-onunsupported-command/2785 "2018-12-20T11:44:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![aWhitehouse](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@aWhitehouse](https://devforum.zoom.us/u/aWhitehouse)\
**Post date:** [December 20, 2018, 11:44am UTC](https://devforum.zoom.us/t/format-json-returns-onunsupported-command/2785/1 "2018-12-20T11:44:14Z")

</div>

For some reason I get ‘onUnsupported Command’ when sending ‘format json’ from my SSH Client. All other commands work as expected.

If I use Putty I can send the format json command with no problems. Are there any log files that I can look at to see what the ZR is receiving and why it’s not recognising the command?

I’m using Beta14 on Mac.

Thanks.

---

<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:** [December 20, 2018, 7:42pm UTC](https://devforum.zoom.us/t/format-json-returns-onunsupported-command/2785/2 "2018-12-20T19:42:57Z")

</div>

It looks like the problem is that for this command, you can’t have any additional whitespace or unusual carriage returns before, within, or after the command. Check to make sure that the line you send to the API is “format json\n”, without any other spaces or carriage return codes. I used PuTTY on Windows, and using the default settings, it works.

---

<div class="post-metadata">

**Author:** ![aWhitehouse](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@aWhitehouse](https://devforum.zoom.us/u/aWhitehouse)\
**Post date:** [December 20, 2018, 8:02pm UTC](https://devforum.zoom.us/t/format-json-returns-onunsupported-command/2785/3 "2018-12-20T20:02:33Z")

</div>

Yeah when I use putty it also works perfectly for me too so it must be something that happens within my SSH client, but I’m really struggling to see what the problem could be. Very strange.

Is it possible to run that command from a script? Or is there another way to force the API to JSON rather than CLI on startup? Once I’ve logged in via putty and enabled JSON everything else works fine. So I really just need a way to ensure that the format is always JSON.

Thanks.

---

<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:** [December 20, 2018, 8:18pm UTC](https://devforum.zoom.us/t/format-json-returns-onunsupported-command/2785/4 "2018-12-20T20:18:21Z")

</div>

I do not have a solution for this problem in the beta 14; I will add code to the next build that accommodates white space around the command.

---

<div class="post-metadata">

**Author:** ![aWhitehouse](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@aWhitehouse](https://devforum.zoom.us/u/aWhitehouse)\
**Post date:** [December 20, 2018, 8:36pm UTC](https://devforum.zoom.us/t/format-json-returns-onunsupported-command/2785/5 "2018-12-20T20:36:40Z")

</div>

I’m not entirely convinced that’s what the issue is as I’m sending the command from .NET and trimming all white space from start and end of the string. Without seeing what is received at the ZR side I can’t say for certain though.

If possible it would be great to have the format non-volatile, ie. set it to JSON once and it will remain that way after a reboot. Is that something that czn be achieved?

Also, to ask the question again; is it possible to run that command from a script?

Thanks for the support!

---

<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:** [December 21, 2018, 2:01am UTC](https://devforum.zoom.us/t/format-json-returns-onunsupported-command/2785/6 "2018-12-21T02:01:25Z")

</div>

It’s not possible to include the format command in a script; the format command is handled at an early stage, and script text is not fed to that stage of the parsing.

-Scott

---

<div class="post-metadata">

**Author:** ![Zach](https://avatars.discourse-cdn.com/v4/letter/z/51bf81/32.png) [@Zach](https://devforum.zoom.us/u/Zach)\
**Post date:** [January 8, 2019, 12:41am UTC](https://devforum.zoom.us/t/format-json-returns-onunsupported-command/2785/7 "2019-01-08T00:41:14Z")

</div>

@aWhitehouse, We have fixed the problem in beta 15. It is currently available at [https://ota.zoom.us/ZoomRooms/ZRCSAPI/](https://ota.zoom.us/ZoomRooms/ZRCSAPI/)

---

<div class="post-metadata">

**Author:** ![aWhitehouse](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@aWhitehouse](https://devforum.zoom.us/u/aWhitehouse)\
**Post date:** [January 27, 2019, 9:42am UTC](https://devforum.zoom.us/t/format-json-returns-onunsupported-command/2785/8 "2019-01-27T09:42:28Z")

</div>

Thanks Zach. I have just had chance to test this with beta 16 and can confirm it’s working.

---

<div class="post-metadata">

**Author:** ![puttykey2024](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@puttykey2024](https://devforum.zoom.us/u/puttykey2024)\
**Post date:** [April 4, 2024, 9:39pm UTC](https://devforum.zoom.us/t/format-json-returns-onunsupported-command/2785/9 "2024-04-04T21:39:26Z")

</div>

> [@aWhitehouse](#):
>
> If I use Putty I can send the format json command with no problems. Are there any log files that I can look at to see what the ZR is receiving and why it’s not recognising the command?

Yes, you use [PuTTY](https://puttykeyinfo.com/putty/download/) to check the log file and the command you sent, server response on these commands.
