def dump_deparsers(json_dict, hlir, p4_v1_1=False):
    deparsers = []
    deparser_id = 0

    for name, p4_parse_state in hlir.p4_parse_states.items():
        new_name = None
        if name == "start":
            new_name = "deparser"
        elif "packet_entry" in p4_parse_state._pragmas:
            new_name = name
        if new_name:
            deparsers.append(
                dump_one_deparser(new_name, deparser_id, p4_parse_state, hlir))
            deparser_id += 1

    check_added_headers_in_parse_graph(hlir, dump_one_deparser.header_set,
                                       p4_v1_1=p4_v1_1)

    json_dict["deparsers"] = deparsers