code: def download_as_json(name):
      
      location = list(IPList.objects.filter(name))
      if location:
          iplist = location[0]
          return iplist.download(as_type='json')
docs: Download IPList as json. This would allow for easily 
      manipulation of the IPList, but generally recommended only for
      smaller lists
  
      :param str name: name of IPList
      :return: None