@csrf_exempt
def data_json(request):
    json_data = []
    for resource in Resource.objects.all():
        record = {} 
        record['title'] = resource.name
        record['description'] = resource.description
        record['keyword'] = resource.csw_keywords.split(',')
        record['modified'] = resource.last_updated
        record['publisher'] = resource.organization
        record['contactPoint'] = resource.metadata_contact
        record['mbox'] = resource.contact_email
        record['identifier'] = resource.csw_identifier
        if resource.is_published:
            record['accessLevel'] = 'public'
        else:
            record['accessLevel'] = 'non-public'

        json_data.append(record)

    return HttpResponse(json.dumps(json_data), 'application/json')
Return data.json representation of site catalog
dataset/ETHPy150Open azavea/Open-Data-Catalog/OpenDataCatalog/catalog/views.py/data_json