VMware {code} Community
richdenis1
Contributor
Contributor

REST JSON Support

Hi,

I thought that the vCloud API would return items in both XML and JSON but when I make requests and set "Accept" to application/json I get 406's.  Can someone please point me to what json support is (if any) in the vCloud API?

Thanks

Rich

Reply
0 Kudos
2 Replies
srmdocs
VMware Employee
VMware Employee

The vCloud API supports only XML in requests and responses.

Reply
0 Kudos
mcfadyenj
Hot Shot
Hot Shot

there is an xmltoJson method in vCO.

if your looking for json to simplify the processing of the message you can also use e4x which enables pretty simple xml parsing routines.

xmldoc..item.itemchild.itemchild.whatever

Reply
0 Kudos