

JSON is a lightweight data format that uses JavaScript notation. JSON data packets are small and quickly parsed by browsers. Today we explore how to read and write JSON data in Python.
This Python tutorial was made possible in part by the generous donations of our Patrons on Patreon! We dedicate this video to Austin Anderson, Carlos Araujo, and Vishal Shah. We are so thankful for your support! It’s making a huge difference in our ability to make these videos for everyone who wants to learn.
You can join the Socratica Team here:
➢➢➢➢➢➢➢➢➢➢
To learn Python, you can watch our playlist from the beginning:
➢➢➢➢➢➢➢➢➢➢
If you’d like a reference book, we recommend “Python Cookbook, 3rd Edition” from O’Reilly:
The Mythical Man Month – Essays on Software Engineering & Project Management
➢➢➢➢➢➢➢➢➢➢
To help us make videos more quickly, you can support Socratica at:
Patreon:
Socratica Paypal:
We also accept Bitcoin! 🙂
Our address is: 1EttYyGwJmpy9bLY2UcmEqMJuBfaZ1HdG9
Thank you!!
➢➢➢➢➢➢➢➢➢➢
You can also follow Socratica on:
- Twitter: @socratica
- Instagram: @SocraticaStudios
- Facebook: @SocraticaStudios
➢➢➢➢➢➢➢➢➢➢
Python instructor: Ulka Simone Mohanty (@ulkam on Twitter)
Written & Produced by Michael Harrison (@mlh496 on Twitter)
source
Welcome to Socratica! You can see our entire Python Playlist here: http://bit.ly/PythonSocratica
Subscribe to see all our new videos! http://bit.ly/SocraticaSubscribe
These python videos are profoundly clean. No wasted time with dumb smalltalk or ads. I wish to learn c c++ c# java perl and python. Socratica, can you recommend any large comprehensive video sets on object orientated software engineering level programming on YouTube that are as great and as informative as your python videos?
Jesus, those are some great movie recommendations!
Two things: For 3.8 use 2 forward slashes ("D:\Note++\01\movie_1.txt", "r", encoding="utf-8") and my code works in python but not in PyCharm.
Learn Python in the Scary Mode
I never understand why on earth no one uses utf-8 or global date format. Working with dates, time zones and different encodings are a nightmare
Typed the json up.
{
"title" : "Gattica",
"release_year" : 1997,
"is_awesome" : true,
"won_oscar" : false,
"actor" : ["Ethan Hawke", "Uma Thurman", "Alan Arkin", "Loren Dean"],
"budget" : null,
"credits" : {
"director" : "Andrew Niccol",
"writer" : "Andrew Niccol",
"composer" : "Michael Nyman",
"cinematographer" : "Sławomir Idziak"
}
}
This Channel Is The Best…
Can't believe that lower case L had a stroke.
Btw 5:00 ń this is not 'n' with an accent, but another letter from polish alphabet, read basically in the same way as spanish 'ñ'. Accents are not graphically marked in this language as there is one simple streesing rule.
This woman is incredible!!!! Love the delivery and the content!
I knew most of this but watched it anyway because I just love the way she presents 😆
a realy different format to making python videos… it sure is a great pleasure to see these videos
pew pew haha! amazing!
JSONDecodeError: Extra data: line 2 column 1 (char 340)
Giving me this error. Can someone please help
I will watch mynority report to have my python checklist done
Probably the best channel on python.
You're great
soo what are the pros of xml? i'd imagine its more expensive to parse, which would make it seem like it doesn't scale very well
Question: doesn't Python 3.x use utf-8 encoding by default? I'm latin american and I don't have input encoding problems with acute letters nor "ñ" for instance…
It likes the video is come from some orgs as CIA, FBI 🙂
It's official! The Socratica Python Kickstarter was a success! Thank you to all of our supporters. Because of you, many more Python videos coming soon!! 💜🦉
I'm getting a key error
We're halfway there. We still need your help! Support Socratica Python Kickstarter: http://bit.ly/PythonKickstarter
Support what you love! Socratica has a Kickstarter to make more Python: http://bit.ly/PythonKickstarter
how we can creat .json file using python and in this video you add 1 dicr and if i want to add dicr after dicr so how i can do..
is she AI or human being?))
00:00
She is great.
Below is the code I used to in my py file:
import json
with open("gattaca.json","r", encoding="utf-8") as f:
movie1 = json.load(f)
print(movie1)
Gracias! Buen aporte
Excelent videos
can you please help?
JSONDecodeError Traceback (most recent call last)
<ipython-input-18-f9adad0adeb1>
is she a robot
these videos are creeping me out but they are also really cool.
You are amazing!
This channel needs more Subcribers and views!!
"Jay-son" is a name. "Jay-sOn" is a file type. Raymond Hettinger said that, so that must be the correct way to pronounce JSON.
Never seen a video with such clear explanation. I highly recommend everyone who want to learn python to follow this page.
Good job. Thanks for making such wonderful videos and providing such clear and precise explanation.
Who's Jason?