Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

google.protobuf.Struct example python

from google.protobuf.struct_pb2 import Struct
from google.protobuf import json_format

s = Struct()
s.update({"key": "value"})

json_format.MessageToDict(s)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
4+3 =