I want to publish Json message using rabbitmqadmin command line. How can we do that as i was reading we can send only string message in payload like below rabbitmqadmin publish exchange=default routing_key=test payload="hello, world".
But I wanted to send something like this: rabbitmqadmin publish exchange=default routing_key=test payload=file.json
How can we do this in command line?
There is not an "API" but you can do it in this way:
I tried it: