{
    "results": [
        {% for item in cl.result_list %}
        "{{ item.pk }}: {{ item }}"{% if not forloop.last %},{% endif %}
        {% endfor %}
    ]
}

{
    "results": [
        {% for item in cl.result_list %}
        "{{ item.pk }}: {{ item|escapejs }}"{% if not forloop.last %},{% endif %}
        {% endfor %}
    ]
}

Make sure we escape this as expected for JS
Make sure we escape this as expected for JS
