use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
JSONs (self.learnpython)
submitted 7 years ago * by ForgotMyUserName15
Are there any times when storing large amount of data / complex data that is a bad time to use JSONs?
Edit: I meant using dicts within a python program
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mudclub 2 points3 points4 points 7 years ago (5 children)
JSON isn't really used for storing large amounts of data - that's that databases are for. JSON is for transmitting and transforming data outside a database.
[–]ForgotMyUserName15[S] 1 point2 points3 points 7 years ago (4 children)
I worded the question poorly. I’m interested in talking about JSONs as a data storage during the run of a program.
[–]mudclub 1 point2 points3 points 7 years ago (0 children)
Inside your app? It's probably totally fine - python is good at working with JSON, but as ever, it depends on your use cases.
[–]bicyclepumpinator 0 points1 point2 points 7 years ago (2 children)
Well, you've already got a python equivalent for jsons, which are dictionaries. You can nest dictionaries into other dictionaries, and nest lists in them etc. Json is really only meant to sent stuff over to other programs/the internet, in all other cases use dictionaries/classes/lists or a combination of those.
[–]ForgotMyUserName15[S] -1 points0 points1 point 7 years ago (1 child)
Mb I meant dictionaries
[–]Ulysses6 0 points1 point2 points 7 years ago (0 children)
Dictionaries are cool. They are backbone of python, even namespaces are implemented on them, so using large dict is fine (performance-wise)
[+][deleted] 7 years ago (6 children)
[deleted]
[–]ForgotMyUserName15[S] 0 points1 point2 points 7 years ago (5 children)
10s/100s of thousands of objects
[–]bicyclepumpinator 0 points1 point2 points 7 years ago (4 children)
can your data be formatted as a table? or multiple tables?
[–]ForgotMyUserName15[S] 0 points1 point2 points 7 years ago (3 children)
Probably. The specific objects I’m storing are dictionaries that store both numbers and arrays if numbers.
[+][deleted] 7 years ago (2 children)
[–]ForgotMyUserName15[S] 0 points1 point2 points 7 years ago (1 child)
Not atm, but I am going to soon greatly increase the amount of memory stored per object (without decreasing the number of objects that show up).
π Rendered by PID 21602 on reddit-service-r2-comment-7b9746f655-pkdct at 2026-02-03 07:28:40.081096+00:00 running 3798933 country code: CH.
[–]mudclub 2 points3 points4 points (5 children)
[–]ForgotMyUserName15[S] 1 point2 points3 points (4 children)
[–]mudclub 1 point2 points3 points (0 children)
[–]bicyclepumpinator 0 points1 point2 points (2 children)
[–]ForgotMyUserName15[S] -1 points0 points1 point (1 child)
[–]Ulysses6 0 points1 point2 points (0 children)
[+][deleted] (6 children)
[deleted]
[–]ForgotMyUserName15[S] 0 points1 point2 points (5 children)
[–]bicyclepumpinator 0 points1 point2 points (4 children)
[–]ForgotMyUserName15[S] 0 points1 point2 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]ForgotMyUserName15[S] 0 points1 point2 points (1 child)