I am sending a string array with RabbitMQ and JsonWriter
mychannel.basicPublish("", QUEUE_SERVER, null, new JSONWriter().write(mystringarraylist.toArray(new String[0])).getBytes());
It works but my IDE warns me JSONWriter
is deprecated.
What is the clean way to do this ?
As you already know the JsonWriter
is deprecate
The documentation here says to use the JSONStringer
instead which can be found here