I have an object that I de-serialize using protobuf in Python. When I print the object it looks like a python object, however when I try to convert it to
If you need to go straight to json take a look at the protobuf-to-json library, but you'll have to install that manually.
But I would recommend that you use the protobuf-to-dict library instead for a few reasons:
pip install protobuf-to-dict or include it in a requirements.txtdict can be converted to json and might be more useful than a json string