Hi,
<br><br>I'm facing an issue while sending the JSON data between Java Producer and Python Consumer.
<br><br>I doing the following serialization in my Java Producer for my JSON data and placing the serialize data in the Queue
<br><br><i>Java Code:
<br>import org.json.simple.JSONObject;
<br>import org.json.simple.parser.JSONParser;
<br><br><br>// Reading the JSON content from the file and making it an JSONObject
<br>JSONObject serviceObj = (JSONObject) parser.parse(new FileReader("C:\\Msg2.json"));
<br><br>String jsonText = new flexjson.JSONSerializer().serialize(jsonObj);
<br><br>channel.basicPublish("", CONDUCTOR_QUEUE_NAME, null, jsonText .getBytes());</i><br><br>-----------------
<br>My python consumer successfully takes the data from the Queue but it is not able to process it.
<br>Python consumer is expected to deserialize the json message read
from the Queue to Python dictionary but the data got after deserialize
is python unicode type.
<br><br>My python consumer is third party code so I can't change my consumer side.
<br>I'm not sure whether I'm doing the correct stuff in my Java producer.
<br><br>Any help to resolve this issue will be appreciated.
<br><br>Thanks In Advance,
<br>Arun V