def arr_to_json_fixturen(array):
    """Convert given iterable to dict for json transformation.

    Desired Format for djangod
        {
            "id" : None,
            "model" : "ocdb.Sector",
            "fields" : {
                "name" : <mandatory>
                "fk_sector" : <optional> *
            }
        }

        *e.g. not for elements with no more parents like continents
    """
    data = {}
    data["id"] = None
    data["model"] = "ocdb.Sector"
    data["fields"] = {
        "name": array[0],
    }

    parent = array[1:]
    if parent != (None, None):
        data["fields"]["fk_sector"] = parent

    return data