devinbost opened a new issue #7660:
URL: https://github.com/apache/pulsar/issues/7660


   **To Reproduce**
   Steps to reproduce the behavior:
   1. Produce message via:
   `bin/pulsar-client produce persistent://public/default/testInput -m '{ 
"test1" : "value1", "test2": "value2" }'`
   Also try it like this:
   `bin/pulsar-client produce persistent://public/default/testInput -m "{ 
'test1' : 'value1', 'test2': 'value2' }"`
   and like this:
   `bin/pulsar-client produce persistent://public/default/testInput -m '"test1" 
: "value1", "test2": "value2"'`
   
   2. Try deserializing the message. In none of the above cases will the object 
deserialize correctly. 
   3. 
   Save the following text into a file named `test.json`:
   `{ "test1" : "value1", "test2": "value2" }`
   4. Produce message via:
   `bin/pulsar-client produce persistent://public/default/testInput -f 
test.json`
   5. Message deserializes correctly. 
   
   **Expected behavior**
   Passing JSON via inline message should produce the same result as passing 
JSON via file. 
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to