def FormatFieldTypeAsJson(type_context, field):
    'Format FieldDescriptorProto.Type as a pseudo-JSON string.\n\n  Args:\n    type_context: contextual information for message/enum/field.\n    field: FieldDescriptor proto.\n  Return: RST formatted pseudo-JSON string representation of field type.\n  '
    if (TypeNameFromFQN(field.type_name) in type_context.map_typenames):
        return '"{...}"'
    if (field.label == field.LABEL_REPEATED):
        return '[]'
    if (field.type == field.TYPE_MESSAGE):
        return '"{...}"'
    return '"..."'
Format FieldDescriptorProto.Type as a pseudo-JSON string.

Args:
  type_context: contextual information for message/enum/field.
  field: FieldDescriptor proto.
Return: RST formatted pseudo-JSON string representation of field type.
def FormatFieldTypeAsJson(type_context, field):
    'Format FieldDescriptorProto.Type as a pseudo-JSON string.\n\n  Args:\n    type_context: contextual information for message/enum/field.\n    field: FieldDescriptor proto.\n  Return: RST formatted pseudo-JSON string representation of field type.\n  '
    if (TypeNameFromFQN(field.type_name) in type_context.map_typenames):
        return '"{...}"'
    if (field.label == field.LABEL_REPEATED):
        return '[]'
    if (field.type == field.TYPE_MESSAGE):
        return '"{...}"'
    return '"..."'