text_plain_output_1.png
import urllib.request
url = urllib.request.urlopen('https://www.reddit.com/r/todayilearned/top.json?limit=100')
text = url.read().decode()

destination = open('json_data.json', 'w')
destination.write(text)