def get_all_exported_url_names(json_urlpatterns):
    """
    Get all names and namespaces in some URLconf JSON.

    :param json_urlpatterns: list of JSON URLconf dicts
    :return: list of strings; url_names and namespaces
    """
    url_names = set()
    for url in json_urlpatterns:
        included_urls = url.get("includes")
        if included_urls:
            if url["namespace"] is not None:
                url_names.add(url["namespace"])
            url_names |= get_all_exported_url_names(included_urls)
        else:
            url_names.add(url["name"])
    return url_names