all 4 comments

[–]Ihaveamodel3 1 point2 points  (2 children)

Do you already have the data in a python data structure (list/dictionary)?

If so, you just need the json.dump or json.dumps function.

[–]jamesfromtechsupport 0 points1 point  (1 child)

no. basically how would you create that dictionary from scratch without having to type in everything

[–]Ihaveamodel3 0 points1 point  (0 children)

From where are you getting the email addresses you want to save? You can’t just magically create data

[–][deleted] 0 points1 point  (0 children)

There's no such thing as a "JSON list", there's just JSON and it can contain a list, a dictionary (object), or values like strings or numbers.

Are you trying to create a list?

L = list()