def json_cirq_type(type_obj: type) -> str:
    """Returns a string type for JSON serialization of `type_obj`.

    This method is not part of the base serialization path. Together with
    `cirq_type_from_json`, it can be used to provide type-object serialization
    for classes that need it.
    """
    namespace = json_namespace(type_obj)
    if namespace:
        return f'{namespace}.{type_obj.__name__}'
    return type_obj.__name__
Returns a string type for JSON serialization of `type_obj`.

    This method is not part of the base serialization path. Together with
    `cirq_type_from_json`, it can be used to provide type-object serialization
    for classes that need it.
    
cirq-core/cirq/protocols/json_serialization.py