If you liked the content, please consider checking out my Patreon! - / membership Hey everyone, today we are going to take a quick look at how to parse JSON in python. Thanks so much for watching!
great video, I just want to know how to get both the key and the value parced out, I seem to get the value returned but the original key value get put into quotations when accessing the dictionary. Like for instance I want it to show the word Street with it shows it like the following from street = 'Street', : ('Street', 'Kula Lumper'). I would like it without being returned as a string.
Thank you for the video something good to know since I had to pause mid video because even now im confused as to where the response.text came from since I guess that a differnet way of doing things But also I used response_json = response.json() which is the same thing as what you did i believe.
Thanks for this. What about nested values? Say if you had another value nested under userId with say their first name and last name? I know I may not be wording things right but I'm trying to learn :) EDIT: Wait you talked about exactly this around 8:26! Thank you!
@@codingunderpressure7818 Ha, not quite I have JSON lines format that is continuously being written to the file I am trying to parse. But it got me going down the right path, and I did get there after a few hours. So thank you!