RabbitMQ API requests giving TypeError for type list

This change accepts the request.json if it's of type list.