def _blocklist_json(request):
 (items, _) = get_items(groupby='id')
 plugins = get_plugins()
 issuerCertBlocks = BlocklistIssuerCert.objects.all()
 gfxs = BlocklistGfx.objects.all()
 ca = None
 try:
  ca = BlocklistCA.objects.all()[0]
  ca = base64.b64encode(ca.data.encode('utf-8'))
 except IndexError:
  pass
 last_update = int(round((time.time() * 1000)))
 results = {'last_update': last_update, 'certificates': certificates_to_json(issuerCertBlocks), 'addons': addons_to_json(items), 'plugins': plugins_to_json(plugins), 'gfx': gfxs_to_json(gfxs), 'ca': ca}
 return JsonResponse(results)

def _blocklist_json ( request ) : ( items , _ ) = get_items ( groupby = 'id' ) plugins = get_plugins ( ) issuerCertBlocks = BlocklistIssuerCert . objects . all ( ) gfxs = BlocklistGfx . objects . all ( ) ca = None try : ca = BlocklistCA . objects . all ( ) [ 0 ] ca = base64 . b64encode ( ca . data . encode ( 'utf-8' ) ) except IndexError : pass last_update = int ( round ( ( time . time ( ) * 1000 ) ) ) results = { 'last_update' : last_update , 'certificates' : certificates_to_json ( issuerCertBlocks ) , 'addons' : addons_to_json ( items ) , 'plugins' : plugins_to_json ( plugins ) , 'gfx' : gfxs_to_json ( gfxs ) , 'ca' : ca } return JsonResponse ( results )
export the whole blocklist in json .