src/swagger2x.py
def convert_to_cplus_string_array(my_array):
    """
    convert the json type to c type
    :param json_type: the json type
    :return: c type.
    """
    my_ret = '{'
    counter = 0
    if isinstance(my_array, str):
        my_ret += '"' + str(my_array) + '"'
    elif isinstance(my_array, list):
        for item in my_array:
            if counter > 0:
                my_ret += ','
            my_ret += '"' + str(item) + '"'
            counter += 1
    else:
        pass

    my_ret += '}'
    return my_ret

    convert the json type to c type
    :param json_type: the json type
    :return: c type.
    
convert the json type to c type
convert the json type to c type
def convert_to_cplus_string_array(my_array):
    my_ret = '{'
    counter = 0
    if isinstance(my_array, str):
        my_ret += '"' + str(my_array) + '"'
    elif isinstance(my_array, list):
        for item in my_array:
            if counter > 0:
                my_ret += ','
            my_ret += '"' + str(item) + '"'
            counter += 1
    else:
        pass
    my_ret += '}'
    return my_ret
def convert_to_cplus_string_array ( my_array ) : my_ret = '{' counter = 0 if isinstance ( my_array , str ) : my_ret += '"' + str ( my_array ) + '"' elif isinstance ( my_array , list ) : for item in my_array : if counter > 0 : my_ret += ',' my_ret += '"' + str ( item ) + '"' counter += 1 else : pass my_ret += '}' return my_ret
convert the json type to c type
convert the json type to c type
"""
    convert the json type to c type
    :param json_type: the json type
    :return: c type.
    """
None
my_array
json_type
the json type
the json type