I am using azure service bus for the first time to transfer message between C# source and python client.
I am creating ServiceBusService object and using it i fetch message from function receive_subscription_message.
The payload i get is not as expected.
My code is something like below.
bus_service = ServiceBusService(service_namespace="service_namespace", shared_access_key_name="All", shared_access_key_value="password")
msg = bus_service.receive_subscription_message('test', 'test', peek_lock=True)
print(msg.body)
msg.delete()
msg.body gives a byte string like below:
b'@\x06string\x083http://schemas.microsoft.com/2003/10/Serialization/\x9ae\x0c{"PUID":"3NFLzV3cjCp8f5JLh3KSnkXDgSw1FWgM","HardDelete":null}\x01'
Originally json was pushed in it. Is there any way to avoid additional parameters and fetch original json only?