How to Publish messages in JSON Format in PYTHON ?

ranganathrangu
ranganathrangu Member Posts: 1
edited March 2023 in General Discussions #1

Hi Myself ranganath working as software engineer in standard chartered bank my requirement is to publish message in JSON Format in python .

Kindly assist.

Answers

  • marc
    marc Member, Administrator, Moderator, Employee Posts: 959 admin

    Hi @ranganathrangu,

    One of the nice thing about the Solace APIs is we don't restrict what you can put into the message payload/body, of course with a few exceptions such as exceeding the max message size.

    Please check out our [Python Samples](https://github.com/SolaceSamples/solace-samples-python/tree/main/patterns) and look at the direct_publisher.py or guaranteed_publisher.py depending on whether you want guaranteed messages or not.

    Hope that helps!