⬇️ *LEARN ON THE BEST LEARNING PLATFORMS (LINKS BELOW)* 😉💪 ⬇️ ☕ *Buy me a coffee:* www.buymeacoffee.com/fabiomusanni ❤️ *Support me monthly:* www.patreon.com/FabioMusanni 😍 *One-off donation:* www.paypal.me/FabioMusanni/ *SKILLSHARE* _(Python, Web Dev, UI/UX Design, Music, Art, Animation and a lot more)_ 🔗 skillshare.eqcm.net/5gxzD2 (Affiliate) *DATACAMP* _(Python, ChatGPT, SQL, Power BI, and a lot more)_ 🔗 datacamp.pxf.io/vN1bDj (Affiliate) *COURSERA PYTHON* _(For beginners, Data Science, Data Analysis, AI, Cybersecurity and a lot more):_ 🔗 imp.i384100.net/k0Nk60 (Affiliate) *COURSERA WEB DEVELOPMENT* _(Full Stack, Front-End, Back-End, Web Design and a lot more):_ 🔗 imp.i384100.net/EKWxBW (Affiliate) Thank you for the support!❤ 🎥All my videos about Python: ruclips.net/p/PLs8qUrmRvaR0IT4IwJl-LSweAdACW-yLK
Thank you Gustavo! Glad it was helpful! 😊💪 Remember that you can support the channel or get the source code of some of my videos here: www.buymeacoffee.com/fabiomusanni
You need to consider that you are dealing with a dictionary. In the example the dictionary contains the attributes of a person directly, but as I say towards the end of the video, the structure can be more complex, you can nest dictionaries inside other dictionaries for example. In you case, you could have one main dictionary and inside that dictionary you could have other dictionaries that represent the person objects, something like: {'person1': {'name':'John'}, 'person2': {'name': 'David'}} Then you can write this dictionary to the JSON file and read that back to modify its content, but you need to know dictionaries and how to use them to then be able to structure, delete, change things etc and that's not something that I show you in the video, it's something you need to learn first. 😊
⬇️ *LEARN ON THE BEST LEARNING PLATFORMS (LINKS BELOW)* 😉💪 ⬇️
☕ *Buy me a coffee:* www.buymeacoffee.com/fabiomusanni
❤️ *Support me monthly:* www.patreon.com/FabioMusanni
😍 *One-off donation:* www.paypal.me/FabioMusanni/
*SKILLSHARE*
_(Python, Web Dev, UI/UX Design, Music, Art, Animation and a lot more)_
🔗 skillshare.eqcm.net/5gxzD2 (Affiliate)
*DATACAMP*
_(Python, ChatGPT, SQL, Power BI, and a lot more)_
🔗 datacamp.pxf.io/vN1bDj (Affiliate)
*COURSERA PYTHON*
_(For beginners, Data Science, Data Analysis, AI, Cybersecurity and a lot more):_
🔗 imp.i384100.net/k0Nk60 (Affiliate)
*COURSERA WEB DEVELOPMENT*
_(Full Stack, Front-End, Back-End, Web Design and a lot more):_
🔗 imp.i384100.net/EKWxBW (Affiliate)
Thank you for the support!❤
🎥All my videos about Python: ruclips.net/p/PLs8qUrmRvaR0IT4IwJl-LSweAdACW-yLK
this is the best python json tutorial that anyone's ever made. Thanks bro
Thank you so much for the comment! 😍😍
Sooo underrated
If you mean the video, thank you very much!! 🤗😍
It helped me out. Thanks
Thank you Gustavo! Glad it was helpful! 😊💪
Remember that you can support the channel or get the source code of some of my videos here: www.buymeacoffee.com/fabiomusanni
how to add another person to file?
how finding person in file with many persons?
how edit, delete one person?
You need to consider that you are dealing with a dictionary. In the example the dictionary contains the attributes of a person directly, but as I say towards the end of the video, the structure can be more complex, you can nest dictionaries inside other dictionaries for example.
In you case, you could have one main dictionary and inside that dictionary you could have other dictionaries that represent the person objects, something like:
{'person1': {'name':'John'}, 'person2': {'name': 'David'}}
Then you can write this dictionary to the JSON file and read that back to modify its content, but you need to know dictionaries and how to use them to then be able to structure, delete, change things etc and that's not something that I show you in the video, it's something you need to learn first. 😊
Best One
Glad it was useful 😉💪