Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def micboard_json(network_devices):
data = []
for net_device in network_devices:
data.append(net_device.net_json())
gifs = file_list('.gif')
jpgs = file_list('.jpg')
mp4s = file_list('.mp4')
url = localURL()
discovered = discover.discovered
return json.dumps({
'receivers': data, 'url': url, 'gif': gifs, 'jpg': jpgs, 'mp4': mp4s,
'config': config.config_tree, 'discovered': discovered
}, sort_keys=True, indent=4)