How to Convert JSON Data Into a Python Object

preview_player
Показать описание
Take JSON data from a file or an API and convert to Python objects.

WORK WITH ME👇🏼

✅ Implement features and fix bugs in your app: Live, one-on-one screenshare

💻 Code written in video
Рекомендации по теме
Комментарии
Автор

U make amazing videos and you deserve a thousand times the recognition appreciation and subs than you have right now.

hamadrehman
Автор

Such a great way to allow you to easily parse json data in python! Kudos, I'll be implementing this in some code I'm writing tonight!

codycodes
Автор

Thank you very much. I have a special use case (Infoblox server application) and your approach is the most sublime in its kind I have came accross.

brunoseys
Автор

Nice presentation. Question: What if my json file has multiple objects? Something like: { "obj1" : {some key/value pairs}, "obj2": {some key/value pairs}}. How can I parse these into either a single class or two different class objects? TIA.

muondude
Автор

Great tutorial, just what I needed, thanks!

paulhernandezgermany
Автор

I’ve never seen the ** used before. Can you elaborate what that is and what it’s doing or for?

domesticcadiz
Автор

Great explanation, how can one achieve the same but with a composite object, object within an object?

lindamahlobo
Автор

What does ** do exactly I've seen it used in places that's not math related but idk what it does

some-wheat
Автор

Nicely explained. Thankyou. Why not use Marshmallow directly...

shaarg
Автор

Any idea on how to store the data into a model after the conversion on Django?

thomas-sinkala
Автор

thanks a lot, its a great video for beginners, i have a doubt on this, for writing from a file can we use this code as it is..bcoz i noticed that initially we are providing the data and second part we are reading from file..i have to read from a file, its very urgent for me, ur reply would be of great help

Hanushbalanshorts_
Автор

Omg and what if you have 1000 json properties and 100 classes? Should I write all conversions myself? Is there anything like in C#?

Suncircle
Автор

What if you need to, not only import the json format but also import specific lines or data from within a json file for a query?

jaqhass
Автор

Thank you for the video. Could you please guide me how to create dynamic JSON request to POST . I have excel sheet with different combination of values . I want to parameterize the JSON request to post, but the Json request might not be same always .

dddttt
Автор

Any plans on future udemy courses? I would gladly buy more ie. Social auth app, stripe using app (memberships)?, fanout pattern for social media app? Reddit style/hacker news style voting? I very like your teaching style, not bothering with stuff unless it's actually important for app funcionality and introducing concept in a logical progression(no: here is x object, we will use it later for something else for now just type it in... ) :x thanks!

ciurkut
Автор

thanks a lot Anthony, but could you pls make a video on how to make a cart functionality for an ecommerce site

paulcurious
Автор

Hello thank you for the amazing contents. i have on question how to implement a conditional statement if we want to have the 'isActive' when its false?

ramburnbantish
Автор

How can we apply validation on object data for all fields like for guide, isActive, name & generate custom errors. Kindly can you show us

muhammadaqibawan
Автор

How can I generate the classs in packages from JSON schema? Please assist.

sandesh
Автор

How to solve a case when email is not exist for example in second dict? Cheers

adamperczynski