"Struggling with how to put json data into a dictionary python – any tips?"
hey guys, i’m kinda new to this and trying to figure out how to put json data into a dictionary python.
i’ve seen a few ways, like using `json.loads()`, but is that the best method? or am i missing something simpler?
also, what if the json is from a file? do i need to open it first or can i just load it directly?
any help would be awesome, thanks!
(ps. if u have example code, even better lol)
hey guys, i’m kinda new to this and trying to figure out how to put json data into a dictionary python.
i’ve seen a few ways, like using `json.loads()`, but is that the best method? or am i missing something simpler?
also, what if the json is from a file? do i need to open it first or can i just load it directly?
any help would be awesome, thanks!
(ps. if u have example code, even better lol)
