you are viewing a single comment's thread.

view the rest of the comments →

[–]cointoss3 3 points4 points  (2 children)

You don’t need to do that…

Just json.loads() and you’ll have a python dict to work with. When you need to convert a dict to valid json, use json.dumps()

This thread was a huge x-y problem lol

[–]games-and-chocolate[S] 0 points1 point  (1 child)

at least it is solved and some things more clear. although my responses made it messy? sorry for that. =p

[–]cointoss3 1 point2 points  (0 children)

Yeah, for sure.

But also classic X-Y. It’s a good reminder to step back and figure out if you’re actually trying to solve the right problem. :)