I am able to publish json files into rabbitmq using the command line API. Below are the command and parameters
user=guest pass=guest exchange=test curl -s -u ${u