def _GenericMessageToJsonObject(self, message):
    """Converts message according to Proto3 JSON Specification."""
    # Duration, Timestamp and FieldMask have ToJsonString method to do the
    # convert. Users can also call the method directly.
    return message.ToJsonString()
Converts message according to Proto3 JSON Specification.
deps/protobuf/python/google/protobuf/json_format.py