Protobuf to json in python - Stack Overflow
https://stackoverflow.com/questions/19734617If 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:. It is accessible from pypi so you can simply pip install protobuf-to-dict or include it in a requirements.txt; dict can be converted to json and might be more useful than a json string