Python Tutorial: Working with JSON Data using the json Module

  Рет қаралды 1,151,055

Corey Schafer

Corey Schafer

Күн бұрын

In this Python Programming Tutorial, we will be learning how to work with JSON data. We will learn how to load JSON into Python objects from strings and how to convert Python objects into JSON strings. We will also see how to load JSON from a file and save those Python objects back to files. Let's get started...
The code from this video can be found at:
github.com/CoreyMSchafer/code...
Python File Objects: • Python Tutorial: File ...
✅ Support My Channel Through Patreon:
/ coreyms
✅ Become a Channel Member:
/ @coreyms
✅ One-Time Contribution Through PayPal:
goo.gl/649HFY
✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
✅ Corey's Public Amazon Wishlist
a.co/inIyro1
✅ Equipment I Use and Books I Recommend:
www.amazon.com/shop/coreyschafer
▶️ You Can Find Me On:
My Website - coreyms.com/
My Second Channel - / coreymschafer
Facebook - / coreymschafer
Twitter - / coreymschafer
Instagram - / coreymschafer
#Python

Пікірлер: 743
@ibrahimal-mahfooz8737
@ibrahimal-mahfooz8737 4 жыл бұрын
Your videos should be part of the official Python docs.
@jairuskersey8311
@jairuskersey8311 4 жыл бұрын
He truly is the best tutorial on the entire internet !!!!!!!!!
@anshulkanwar1
@anshulkanwar1 4 жыл бұрын
He truly is the best tutorial on the entire internet !!!!!!!!!
@guckesksk5895
@guckesksk5895 4 жыл бұрын
Bucky’s tutorials was best
@moody54324
@moody54324 4 жыл бұрын
Agree
@ifeanyiinnocentlazarus1403
@ifeanyiinnocentlazarus1403 3 жыл бұрын
J'ai enfin un script légitime que je fonctionne parfaitement via FRESKIEHACK sur Instagram
@nktslp3650
@nktslp3650 4 жыл бұрын
You are the best python teacher ever. Every single time I go through documentation to learn something, I feel confused. Every single time I type on youtube my problem, one of your videos shows up and I understand everything completely. You are a wonderful teacher. Thank you for your time!
@SueBeatMaker
@SueBeatMaker Жыл бұрын
I agree with you, the author tells us as clearly as possible
@augurelite
@augurelite 2 жыл бұрын
Gives me hope for humanity that people like Corey post this kind of elite educational content FOR FREE. Makes me happy. Coding, specifically in python is SO useful and surprisingly learnable with a good teacher like Corey. This man has literally helped hundreds of thousands of people with each video and he should be extremely proud of his work.
@MrMutt111
@MrMutt111 8 ай бұрын
Not really "elite" educational content. But it certainly is high quality information.
@imtiazshahed944
@imtiazshahed944 4 жыл бұрын
The best thing we get from Corey's tutorial is an easy explanation with a real-world example. THANKS A TON.
@ericcartman2294
@ericcartman2294 3 жыл бұрын
I usually rarely comment on videos in KZfaq, but you sir definitely deserve a lot more than just comments and likes. I'm truly happy to find your channel in KZfaq. Just about 3 month I began learning programming and started with Python and with your videos I almost replace reading tons of pages of official docs. Bless you! Once I'll get my first salary I'll be back and show my respect in "patreon-way" too. But for now, you got my respect in words and my best wishes!
@andrewbaillie2475
@andrewbaillie2475 4 жыл бұрын
YES!!!!! This is exactly what I have been trying to do for over 2 weeks and couldn't work it out. A HUGE Thank you.
@sampadakhandekar5383
@sampadakhandekar5383 6 жыл бұрын
Corey, thank you so much for all the amazing tutorials on Python! You not only explain the concepts but also give valid examples which make it easy to retain the concepts. I have definitely learnt a lot from them. Thanks again!
@davidreynolds9649
@davidreynolds9649 6 жыл бұрын
agreed, I also like to see the exploration of some of the options (if that is the right term) , sort, indent etc
@ifeanyiinnocentlazarus1403
@ifeanyiinnocentlazarus1403 3 жыл бұрын
J'ai enfin un script légitime que je fonctionne parfaitement via FRESKIEHACK sur Instagram
@haoyangrocks
@haoyangrocks 6 жыл бұрын
I also loved the practical example at the end of the tutorial. Thank you!
@stephencedric8553
@stephencedric8553 6 жыл бұрын
Amazing. Seriously. Out of all of the Python tutorials ive watched this is by far the best.
@coreyms
@coreyms 6 жыл бұрын
Thanks!
@phillipsparks9690
@phillipsparks9690 2 жыл бұрын
Wonderful tutorial Corey. I was able to turn it into an Action Learning project because you could covered so much in just 20 minutes with practical examples that someone with no python and json experience (but experienced in parsing data) could use to start using json and python in real world automation project. Truly a rare find, in thank you.
@beem124
@beem124 5 жыл бұрын
Pretty easy to follow. The best part is you've used real-world examples. Great tutorial!
@monagulapa3022
@monagulapa3022 4 жыл бұрын
Corey, you are amazing! Thank you for your time and most of all, your being you, a person who has a good heart of sharing your knowledge. Your content shows your maturity in your field of expertise. More power to you!
@shobhamourya8396
@shobhamourya8396 6 жыл бұрын
I tried the INR conversion and was surprised when you showed it :) You cover a lot and with clarity in short time - thanks Corey!
@LittleEngineCan
@LittleEngineCan 6 жыл бұрын
Clear, easy-to-follow walk-through, with a practical API example. I'm pulling a bunch of financial data from 4 APIs and this video saved me at least 2+ hours! Great work, PayPal sent.
@coreyms
@coreyms 6 жыл бұрын
Thanks!
@funrover90
@funrover90 6 жыл бұрын
Seriously, you are one of the best Python tutors online 👍🏻 Thank you for the video sir!
@zeeshanqureshi9252
@zeeshanqureshi9252 5 жыл бұрын
The most prefered Channel.... Always in my youtube search. Respect for you.
@shihabkhan3218
@shihabkhan3218 3 жыл бұрын
Man, love the way Corey explains. His videos explain the fundamentals but with real practical demonstrations. Love you man
@GabrielRodriguezInjectedFusion
@GabrielRodriguezInjectedFusion 4 жыл бұрын
Been searching for a good tutorial online for JSON & Python and this hands down is the fastest and most understandable tutorial there is!
@JustinPresley
@JustinPresley 6 жыл бұрын
Corey, thank you so much for this content. Some of the best I’ve found, you’re a great teacher. I’ll be donating through your patreon
@coreyms
@coreyms 6 жыл бұрын
Thanks so much! I really appreciate that and it really helps me with these videos!
@husainshaikh8724
@husainshaikh8724 6 жыл бұрын
You are the best....I've watched several tutorials of several topics, and I almost always had problems following them, with you it is different.
@ishabytheway
@ishabytheway 4 жыл бұрын
I've watched a ton of your videos and the kind of conceptual clarity I have is unparalleled. Such great content, I can't help but donate on Patreon! :)
@arpithamuthappa
@arpithamuthappa 3 жыл бұрын
I read multiple blogs and was confused all along till I bumped into your video :). Thank you so much.
@sandhusukhdeep
@sandhusukhdeep 3 жыл бұрын
spent so many hours scouring json/python info and your vid cleared everything in one go! excellent stuff and thank you!
@aank2007
@aank2007 6 жыл бұрын
Phenomenal !! you're the best instructor, Corey- keep up the good work !!
@hiankun
@hiankun 4 жыл бұрын
I was trying to view some json files from image data set, which were large and all in one line. I had no idea how to format it to human-readable format, and tried some awkward approaches to rearrange the big files. Now I watch your tutorial and realize that "load and then dump with indent" is what I needed. Thank you so much.
@ambarishkapil8004
@ambarishkapil8004 4 жыл бұрын
Hey Corey, thank you for making this video. I was doing some stuff with mysql and json files and was browsing through the web and nothing seemed to work, but your video really did the trick. I hope you keep making such clear and useful videos.
@frakman1
@frakman1 6 жыл бұрын
Great tutorial and even better timing! Just the other day, I was bumbling my way through a real-world JSON data set and cursing the Python gods for making it so hard to understand. No I bumble/curse no more.
@aakashsrivastava1128
@aakashsrivastava1128 4 жыл бұрын
Thank you sooo much Corey!! You have made my journey of self learning python a hell lot easier and interesting.😃 Again can't thank you enough!!!😊
@johnprogrammer7164
@johnprogrammer7164 Жыл бұрын
It's 5 years later and you are still a real legend. Thank you.
@glowish1993
@glowish1993 5 жыл бұрын
Ah, the wonders of KZfaq and Corey Schafer. Thank you!
@anigasparyan3841
@anigasparyan3841 2 жыл бұрын
Man, this has been the most helpful straight to the point walk-through! Thank you!
@theip7556
@theip7556 6 жыл бұрын
Best Python/JSON video on the internet.
@ronglass5968
@ronglass5968 6 жыл бұрын
A ton of *really* good info in here explained exceptionally well. Was a huge help; have subscribed and will donate. Keep up the great work!
@techcode_man
@techcode_man 6 жыл бұрын
Yet another superb tutorial from you. Thank You. Patron donation on its way. Keep up the excellent work!
@coreyms
@coreyms 6 жыл бұрын
Thanks! Any contributions help me keep the tutorials free for everyone else, so I really appreciate that!
@alkor3883
@alkor3883 2 жыл бұрын
Wish I came across this sooner. Been searching for a clear way to access inner members of a JSON, this is by far the clearest, to the point explanation.
@oh6254
@oh6254 3 жыл бұрын
Thank you, I've been searching all over the internet at paid courses looking for pretty much exactly this. 20min video.
@hedleypanama
@hedleypanama 6 жыл бұрын
Congrats Corey! This is the Zen of Python at its best, applied to JSON!
@absolutedgefindout726
@absolutedgefindout726 5 жыл бұрын
Thank you for being here for us and blessed be.
@fabizmart398
@fabizmart398 2 жыл бұрын
As others have said, I found that other online tutorials, while good, do not match the clarity of these videos and the examples provided with them. They are my go to resource and reccomendation to new Python users. I have not found one yet that hasnt ebnabled me to progress with my own work. Many thanks Corey.
@tarick1650
@tarick1650 2 жыл бұрын
Even more than 4 years later this video is still useful, thank you!
@LuskyMJ
@LuskyMJ 3 жыл бұрын
Amazing video. I've been holding off learning JSON for so long and this video taught me the basics in just 20 minutes
@timgore829
@timgore829 3 жыл бұрын
I've been struggling trying to wrap my head around using JSON data obtained via an API. After watching your video, I finally got it to work! Excellent videos! I finally get it.
@yaoi173
@yaoi173 6 жыл бұрын
Wow, you literally saved me from hours of desparation!! Thank you so much!
@retrodog65
@retrodog65 6 жыл бұрын
Donated thru Patreon. Very good work - saved me hours of research and yet learned a ton. Keep them coming
@coreyms
@coreyms 6 жыл бұрын
Thanks!
@pollen4595
@pollen4595 6 жыл бұрын
Thanks man your the best python teacher I've found all your vids helpful i learned classes here better than the course i was reading keep up the good work
@NicoLargi
@NicoLargi 2 жыл бұрын
Your Python videos are a gold mine for beginners like me. Thank you so much!
@johanneszwilling
@johanneszwilling 5 жыл бұрын
Thank you! Straight to the point, quick and concise,...love it!
@ChetanKumar-eg6ot
@ChetanKumar-eg6ot 5 жыл бұрын
Clearly explained the topic working with json with practical problems and solutions. Thanks man.
@garethwoodall577
@garethwoodall577 4 жыл бұрын
Your videos are excellent Corey, using this style and pace I was able to get an old API get to work that I couldnt before, much thankos!!
@0cool966
@0cool966 3 жыл бұрын
Your JSON videos are really amazing. Best tutorials! Very easy to consume and understand for a beginner who wants to manipulate API calls.
@ericsuper8224
@ericsuper8224 6 жыл бұрын
No joke... dude is theeeee best explainer.
@singhkuldeep911
@singhkuldeep911 3 жыл бұрын
I was struggling to get direction in python learning, your videos helped me a lot .Very crisp and concise ,easy to understand content. Thanks Corey !
@UnknownSend3r
@UnknownSend3r 2 жыл бұрын
How is you’re python journey going since you’ve posted that comment ?
@ScottMoyse
@ScottMoyse 4 жыл бұрын
This is a damn good video. It looks like you've just shown me exactly what I needed to know. I'd been hunting around for a while using Google... And thought I'd do a search on KZfaq and this was the 2nd video on this topic I watched. Thanks heaps!!!
@rafasantos23
@rafasantos23 4 жыл бұрын
*This video helped me a lot, I was with difficult at create an JSON file with some users' data, Thanks*
@esteban578
@esteban578 6 жыл бұрын
I want to give you a virtual hug. I found your video so helpful and easy
@alfredsfutterkiste7534
@alfredsfutterkiste7534 3 жыл бұрын
Dude love your videos, honestly this and realpython are my go tos for getting Python explained in plain English with a focus on practical applications!
@stanmanmedia
@stanmanmedia 3 жыл бұрын
Outstanding.. not one second of wasted information. This had to be the most informative information I've seen in 20 minutes. Brilliant. Thanks!!!
@GeNiaaz
@GeNiaaz 4 жыл бұрын
I was struggling with this for the past 3 days, thank you so much for your video tutorials, they really helped me.
@LauLauHip
@LauLauHip 2 жыл бұрын
Thank you so much! I'm creating a personal voice assistant rn and I didn't want to do every response by hand. This helped me a lot!
@sazzi4all
@sazzi4all 5 жыл бұрын
Simply awesome; the way its been explained with clarity & real-time examples. Thanks a lot & Cheers..!!
@pooryakhanali6921
@pooryakhanali6921 4 жыл бұрын
fantastic tutorial, everything you need to know to work with JSON in python
@pedrolazdin6164
@pedrolazdin6164 3 жыл бұрын
What a way to explain!! Becoming a python developer (or really any language) by yourself is a challange for their own, but videos like this really help newbies like me to understand and become little better, one step at a time.. Thanks for this awesome tutorial!
@UdayKiran-uz7mi
@UdayKiran-uz7mi 6 жыл бұрын
very straight forward and sufficient information . Thanks Corey
@riadshash5456
@riadshash5456 4 жыл бұрын
Perfect! Simple and easy to follow and great examples! Thank you.
@rowbow7246
@rowbow7246 15 күн бұрын
one of the best videos about python ive seen
@sanjaybabusanjay
@sanjaybabusanjay 4 жыл бұрын
This is the most amazing explanation I've seen so far :)
@hacktooth1
@hacktooth1 3 жыл бұрын
Great video Corey! Thanks for the help.
@kayderl
@kayderl 4 жыл бұрын
I'm a self taught Python programmer and have been doing it for 2-months now. I only learnt that Python could work alongside JSON today. (Ikr, Shake my head) But your succinct lesson help me learn so much already.
@kirankolluri4080
@kirankolluri4080 4 жыл бұрын
simple ,crisp and clear explanation. Thank you very much for your very precise examples which will register in mind
@jimperkins9661
@jimperkins9661 11 ай бұрын
Really great Corey. Working on exactly this for a python backend which I need to convert computed variables values to something that will plug into html (in other words, JS). This is so helpful!
@scottwiseman2966
@scottwiseman2966 5 жыл бұрын
Very exciting Corey. Real Word!
@s.baskaravishnu22
@s.baskaravishnu22 6 жыл бұрын
I very much congratulate you for providing code_snippets.
@lardosian
@lardosian 6 жыл бұрын
Your tutorials are brilliant, love the accent.
@seiferleonheart
@seiferleonheart 2 жыл бұрын
Thanks a lot! Had to parse data from a json file and adapted from your example to do it, worked perfectly.
@ranjitmahato6268
@ranjitmahato6268 4 жыл бұрын
Its very crystal & clear to understand. Great explanation!
@slonbeskonechen8310
@slonbeskonechen8310 2 жыл бұрын
Awesome! The best JSON explanation I've ever seen!
@abhisheksaharan
@abhisheksaharan 6 жыл бұрын
Perfect and clear explanation and amazing presenter. Please contribute everyone so that he can keep making such useful videos.
@sessdu
@sessdu 4 жыл бұрын
best json & python tutorial I'd ever met. thanks a lot!
@ikemikesee1824
@ikemikesee1824 Жыл бұрын
Best Python video I've ever seen!
@mienislav
@mienislav 2 жыл бұрын
You are a god! Never have I learned so much in just 20 minutes! Thank you, Corey!
@rayoh2011
@rayoh2011 Жыл бұрын
Mr. Schafer, you're an amazing instructor! Thank you!
@Vamsibl
@Vamsibl 2 ай бұрын
Crisp & clear to the point! explained beautifully.
@alexrsnh
@alexrsnh 4 жыл бұрын
Very straightforward, helpful videos for the python beginner. Thanks!
@xXAkitokunXx
@xXAkitokunXx Жыл бұрын
Instead of watching trash I’m watching tutorials about python. Man time to be alive
@ramanupreti214
@ramanupreti214 4 жыл бұрын
It was a pleasure to watch this and understand JSON concepts in Python
@arunsaivemula1300
@arunsaivemula1300 6 жыл бұрын
U r the best teacher ever..!
@WallStreetinWallStreetLLC
@WallStreetinWallStreetLLC Жыл бұрын
This is the video were im looking for. Great job dude.i follow you.
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 3 жыл бұрын
corey covers every video I've interest in :)
@piyushkonher8405
@piyushkonher8405 4 жыл бұрын
Valuable 20 minutes of my morning 🙂👌👌
@archtaurus
@archtaurus 6 жыл бұрын
Love these detailed tutorials! THX :)
@myandrobox3427
@myandrobox3427 Жыл бұрын
This is by far excellent tutorial for JSON + Python!! ❤❤🙏🏻🙏🏻
@akashpillai7928
@akashpillai7928 2 жыл бұрын
Even though ur lecture was a bit long still it was an interesting session especially the way of teaching need to appreciate it, I had gone through many JSON videos still my concept was not clear this video is lifesaver thank you sir, Love from India
@prashantkumargupta4996
@prashantkumargupta4996 3 жыл бұрын
Thanks Corey Schafer for awesome video :)
@nancyanderson5413
@nancyanderson5413 11 ай бұрын
As always another superb video
@orsettogommoso
@orsettogommoso 5 жыл бұрын
You saved my day with this tutorial, thanks a lot :)
@tranguyen758
@tranguyen758 6 жыл бұрын
Thank you so much, this video help me to understand about JSON structure and how to use in python. The best explanation .
@keziahle-roux8676
@keziahle-roux8676 9 ай бұрын
Helpful video, thank you, the real world example was really the cherry on the cake
@sebastianjost
@sebastianjost 2 жыл бұрын
Reading it as "dump_s" makes so much more sense than "dumps"... The name really should include an underscore i.m.o.. As always your tutorial was amazing. Whenever I need to learn something about python and see your name on a video about it, I know it will be a great and easy learning process thanks to your help! Thank you!
@jims408
@jims408 5 жыл бұрын
Very clearly and concisely explained. Many thanks.
@PiddBoo
@PiddBoo 6 жыл бұрын
Like first, watch later.
@RandomShowerThoughts
@RandomShowerThoughts 5 жыл бұрын
For Corey's videos this is a must. I always know it's going to be information packed.
@pradeepnagaraj9277
@pradeepnagaraj9277 4 жыл бұрын
I did it and it was a Perfect Like!
@pratyushkumarbiswal736
@pratyushkumarbiswal736 3 жыл бұрын
That's what I did.😅😅
- А что в креме? - Это кАкАооо! #КондитерДети
00:24
Телеканал ПЯТНИЦА
Рет қаралды 7 МЛН
Зачем он туда залез?
00:25
Vlad Samokatchik
Рет қаралды 2,8 МЛН
Каха и суп
00:39
К-Media
Рет қаралды 6 МЛН
5 Good Python Habits
17:35
Indently
Рет қаралды 440 М.
Python dataclasses will save you HOURS, also featuring attrs
8:50
Python Tutorial: if __name__ == '__main__'
8:43
Corey Schafer
Рет қаралды 2 МЛН
JSON, I hardly know 'er
2:52
ThePrimeagen
Рет қаралды 185 М.
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1,1 МЛН
JSON Tutorial in Python
13:22
NeuralNine
Рет қаралды 59 М.
Python Tutorial: CSV Module - How to Read, Parse, and Write CSV Files
16:12
- А что в креме? - Это кАкАооо! #КондитерДети
00:24
Телеканал ПЯТНИЦА
Рет қаралды 7 МЛН