[rabbitmq-discuss] Invalid JSON returned by RabbitMQ Management HTTP API

TrueWill baldgoth at gmail.com
Fri Nov 18 18:12:15 GMT 2011


Any particular reason the HTTP API returns raw JSON arrays rather than a 
JSON object with an array field?

Example:
/api/vhosts
[{"name":"/","tracing":false},{"name":"MyHost","tracing":false}]

At least one library (Json.NET) fails to parse that. I'm not sure if it's 
in the standard.

A workaround is to create a JSON object on the client and assign this to a 
field.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20111118/d51ad570/attachment.htm>


More information about the rabbitmq-discuss mailing list