There is a remote RabbitMQ server which allows me only send and receive messages. That means I can't create anything. I send a certain request and get an answer in JSON format.
In my application I have a simple Receiver class:
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
@Component
public class Receiver {
@RabbitListener(queues = "QueueName")
public void receive(String in) {
System.out.println(" [x] Received '" + in + "'");
}
}
And I expect to receive a JSON object. Instead of this I get a bunch of numbers:
[x] Received '123,34,97,99,116,105,111,110,34,58,34,103,101,116,73,110,102,111,34,44,34,114,101,115,117,108,116,34,58,34,78,111,116,82,101,103,105,115,116,101,114,101,100,34,44,34,112,97,121,108,111,97,100,34,58,110,117,108,108,125'
I suppose that is the JSON object but how can I covert it to readable format?