Learn JSON - Full Crash Course for Beginners

  Рет қаралды 180,140

freeCodeCamp.org

freeCodeCamp.org

Күн бұрын

Пікірлер: 170
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Thank you Free Code Camp for sharing my JSON crash course video. If anyone has any questions or comments let me know by replying to this comment, and I will reply as quickly as possible.
@januwee6356
@januwee6356 6 жыл бұрын
Web Dev Simplified how do i access the json file from js without putting the same json to a variable?
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
@@januwee6356 It depends on how you are using the JavaScript. If you are running a server with Node.js and want to access the file on the server than you would need to open and read the file with fs. If you are running the JavaScript in the browser then you cannot access the file directly since it lives on the server, so you will either need to read it form an API or you will need to send the JSON to the front end JavaScript from the server. In the latter option the server will be the one that reads the file, and then just sends it to the front end.
@januwee6356
@januwee6356 6 жыл бұрын
Web Dev Simplified okay thanks. I enjoyed your video :) Instant sub to your channel.
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
@@januwee6356 Thanks for the support! I really appreciate it.
@kevyyar
@kevyyar 6 жыл бұрын
What scenarios or real world examples can this be applied? I would love to watch a live example of real world use in a tutorial. I'll check out your channel.
@nordicdev-jmk
@nordicdev-jmk 6 жыл бұрын
Watched and Practiced with Him, My Concept about JSON is Fully Clear Now.
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
I'm glad I could help.
@balajig7011
@balajig7011 6 жыл бұрын
worthy 12 minutes in a day
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
I'm really glad you enjoyed it!
@thiagosilvafarias
@thiagosilvafarias 5 жыл бұрын
Just an observation. On 9:45 you used backticks ( ` ) also known as a grave accent (what is not the same of a single quote). This is called Template literals, both quotes and apostrophes can be used safely without any sort of extra escaping or consideration. Template literals provide multi-line support as well.
@lank_asif
@lank_asif 6 жыл бұрын
Thank you for the noob friendly tutorial that explained the subject matter very clearly. I love this channel and what it represents.
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Thanks. I focus on trying to make videos that people of all levels of experience can understand, since learning web development is challenging enough as is.
@lank_asif
@lank_asif 6 жыл бұрын
@@WebDevSimplified Well I, and others, are very thankful for your efforts.
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
@@lank_asif I am incredibly thankful to have amazing people like you watching my videos.
@lank_asif
@lank_asif 6 жыл бұрын
@@WebDevSimplified I can honestly state that is is our pleasure. Cheers, friend.
@deminouk8347
@deminouk8347 5 жыл бұрын
Lank Asif I love noob friendly
@AVINASH__SHARMA
@AVINASH__SHARMA 11 ай бұрын
small correction at 1:04 json is subset of javascipt not superset!
@codenameFourtySeven
@codenameFourtySeven 5 жыл бұрын
Top Effort! I learnt everything I need to about JSON! Legend
@luisf7105
@luisf7105 2 жыл бұрын
Thank you sooooo much for this upload, it was really helpful... Only thing , you were confusing me with semicolon (;) colon (:).👊🏽
@klajdipepa2654
@klajdipepa2654 3 жыл бұрын
I'm constantly trying to find more time to watch videos from this channel!
@gregfletcher7514
@gregfletcher7514 6 жыл бұрын
Great beginners guide! Thank you!
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
You are very welcome!
@BryantCabrera
@BryantCabrera 6 жыл бұрын
Thank you for this crash course! Btw, you are so handsome 😍
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Thank you and thank you again. You are too kind.
@PaulMihail
@PaulMihail 3 жыл бұрын
Your videos are amazing! Please keep up the good work!
@dennisbunarta1190
@dennisbunarta1190 Жыл бұрын
I love this guy!! God bless him!
@1234mohitmhatre
@1234mohitmhatre 6 жыл бұрын
Dude Thanks Great Video finally I understand json a huge thumbs up to you bro
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Thanks! I am really glad the video was able to help.
@ndrakeb8926
@ndrakeb8926 3 жыл бұрын
JSON concept is clear now. Thank You for simplifying :)
@666222333111
@666222333111 6 жыл бұрын
Saved, going to have a look later. :)
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
I hope you enjoy it!
@chargoy9178
@chargoy9178 6 жыл бұрын
Great video, simple and focus. Thanks
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Thanks you!
@samuelosoba
@samuelosoba 6 жыл бұрын
very useful! simple and straight forward.
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Thank you!
@leo_nidas
@leo_nidas 2 жыл бұрын
Extremely helpful! Thank you!
@pratham5746
@pratham5746 4 жыл бұрын
Definitely worth 12 minutes instead of wasting time and doing nothing
@dakshamdev
@dakshamdev 4 жыл бұрын
{ "name" : "This Video", "rating" : 6, "like" : true }
@thecube0293
@thecube0293 3 жыл бұрын
{ “message”: “Yeah you are right”, “rating”: 10, “like”: true }
@ramankumar41
@ramankumar41 Жыл бұрын
Thanks dude great work !!!
@ankitvashisht7350
@ankitvashisht7350 6 жыл бұрын
Very good explanation.love it 😘
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Thank you!
@ankitvashisht7350
@ankitvashisht7350 6 жыл бұрын
@@WebDevSimplified I also subscribed your channel. It also has great content 😘😍. Thank you so much ! 🤗
@mohammadahmedragab837
@mohammadahmedragab837 2 жыл бұрын
thank you so much, simple, concise , excellent explanation of JSON :)
@udhayasankar113
@udhayasankar113 6 жыл бұрын
Excellent explanation...
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Thank you!
@joep1131
@joep1131 5 жыл бұрын
very very good to the point and clean and short thanks
@jrobinsam
@jrobinsam 6 жыл бұрын
Could have included JSON.stringify explanation too...Good work..!!
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Thanks! JSON.stringify is a really useful function, especially for debugging, but I wanted to keep this course as light as possible on the JavaScript, since the main purpose was to learn JSON. I only included the JavaScript section to showcase how JSON can be easily used in any language, especially JavaScript.
@chavakahana8237
@chavakahana8237 2 жыл бұрын
Thank you - your explanation is clear and very helpful
@stephenoshaughnessy2279
@stephenoshaughnessy2279 Жыл бұрын
Now that we've gotten to fetch in your javascript course, I need to get JSON experience.
@utcca7758
@utcca7758 6 жыл бұрын
Jason! Jason! Json! Haha good explanation video.
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Thanks. I feel like all web development names and acronyms are quite unintuitive in how they should be pronounced.
@rajesht9702
@rajesht9702 4 жыл бұрын
Thank you So much @Web Dev Simplified
@linhang3942
@linhang3942 6 жыл бұрын
tks for explanation !
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
You are welcome!
@brandonguerrero9485
@brandonguerrero9485 6 жыл бұрын
You meant to say colon after the key values I think. I got it though no worries!
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Yeh. I realized that when I was editing the video, but didn't want to re-record and edit everything to fix it. I'm glad it didn't trip you up.
@fafelo30
@fafelo30 5 ай бұрын
very useful, thanks
@md9936
@md9936 4 жыл бұрын
thanks a lot for share great video man!
@milankbudha
@milankbudha 3 жыл бұрын
freecodecamp and web dev simplified are best
@SubhanAli-mb4ny
@SubhanAli-mb4ny 6 жыл бұрын
nice video dear.... thanks
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
You're very welcome.
@HasithaSameeraNova
@HasithaSameeraNova 6 жыл бұрын
Well explained. Thanks!
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
You're welcome!
@rohittanwer8126
@rohittanwer8126 6 жыл бұрын
Hmm.... One more nice video. Ok gonna see it now
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Thanks! I hope you enjoyed it.
@glgeorgiou
@glgeorgiou 6 жыл бұрын
Very interesting introductory video. How can i link and call an external json file instead of importing into the .html file?
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
This would be done most likely through an API which will return JSON data. Another way would be to tell your server to set a JavaScript variable before rendering the page so you have access to the JSON on the client.
@electricaura_1
@electricaura_1 3 жыл бұрын
Thanks bro!
@Faizy_Ahmad
@Faizy_Ahmad 4 жыл бұрын
Great Place to learn
@sabuein
@sabuein 2 жыл бұрын
Thank you.
@d74g0n
@d74g0n 6 жыл бұрын
2:32 "undefined" ?
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Undefined is actually not a valid JSON value even though it is valid JavaScript. You would need to use null instead of undefined for JSON.
@reassume4826
@reassume4826 6 жыл бұрын
Thanks
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
You are welcome!
@H76Pro
@H76Pro 4 жыл бұрын
Thank you :) Excellent explanation and easy to follow :) but I did get an error in the console when using json.parse "Uncaught SyntaxError: Unexpected token n in JSON at position 22"
@molokomokubedi631
@molokomokubedi631 3 жыл бұрын
Thanks!!
@Albovsky
@Albovsky 5 жыл бұрын
Thanks for the video. Just one remark: even thought I got general idea about JSON one question remain unclear: why does it even exist in the first place? How do I use it in my project? What another options?
@marcmesser6766
@marcmesser6766 3 жыл бұрын
Sending some data from the server to the client so it can be displayed on the web page or vice versa
@predo2068
@predo2068 6 жыл бұрын
Awesome video! Everything is comprehensive and It's a good start for beginners. 'Looking forward to next videos ;)
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Thanks. I try to make all my videos focused on giving as much quality content as possible without being needlessly complicated.
@RaghavKhullar
@RaghavKhullar 5 жыл бұрын
Worth it!!
@HumeraSheikh-s2p
@HumeraSheikh-s2p Жыл бұрын
thank you
@motivation_guru_93
@motivation_guru_93 4 жыл бұрын
Hi What code editor do you use ? Is it ATOM or Sublime ?
@danishfaridi8564
@danishfaridi8564 4 жыл бұрын
Worth the time
@easirmaruf7061
@easirmaruf7061 6 жыл бұрын
just awesome
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Thank you!
@ackukoyi
@ackukoyi 5 ай бұрын
Would you happen to have any more tutorials on JSON? If you do, please send me the link. Thanks. Ade
@eduarduskresnapurnama2113
@eduarduskresnapurnama2113 5 жыл бұрын
Is json is a new way to write javascript? So why we must write with .json, why not write that syntax on .js?
@freecodecamp
@freecodecamp 5 жыл бұрын
json is not a new way to write JavaScript. It is a method of formatting data that is often used in JavaScript. You can create it in a .js file.
@carmelomotolese287
@carmelomotolese287 6 жыл бұрын
New series? So goooood :)
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
I have a full series of videos similar to this video where I breakdown a topic in as short amount of time as possible. The CSS crash course on the freecodecamp channel is another example of one of my videos of this style. Check out the playlist on my channel.
@Sage16226
@Sage16226 6 жыл бұрын
great video
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Thanks!
@esra_erimez
@esra_erimez 6 жыл бұрын
By the way, YAML 1.2 *is* a superset of JSON.
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Interesting. I I have been using YAML for awhile now and didn't realize it could parse JSON as well. The syntax is so dissimilar I just assumed they were differnt.
@esra_erimez
@esra_erimez 6 жыл бұрын
JSON syntax is a basis of YAML version 1.2, which was promulgated with the express purpose of bringing YAML "into compliance with JSON as an official subset" From: yaml.org/spec/1.2/spec.html "The primary objective of this revision is to bring YAML into compliance with JSON as an official subset."
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
@@esra_erimez that's really cool. Thanks for sharing. I've learned so much from smart people like you since I started making videos. I love it.
@femaledeer
@femaledeer 6 жыл бұрын
It seems like copying the Json code without quotes and copying the json code with quotes and then parsing it, accomplished the same, so I don’t understand why you would want to copy it as a string.
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
The reason I copied it as a string is because if you read the JSON from a file, or an API it will be returned as a string and not an object. I wanted to show how to parse JSON that is in a string format since that is the most common way you will interact with JSON.
@christooss
@christooss 6 жыл бұрын
So is JSON basically Python Dictionary in a implemented JS file? Learning both Web development and Python so I don't know how much these two things differ.
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
JSON is just a data format which is used to store data in a uniform way. A dictionary is another way to store data but it does not support complex data structures as well as JSON and is not easy to send or parse that data other than in the program it was written for. JSON is used mostly to send data between applications while dictionaries are mostly for within an application.
@esra_erimez
@esra_erimez 6 жыл бұрын
Interesting choice of hair style.
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Thanks. I will take that as a compliment.
@esra_erimez
@esra_erimez 6 жыл бұрын
You're welcome. It was a compliment
@smellthel
@smellthel 4 жыл бұрын
Thank you br0ther
@gmkhallyu
@gmkhallyu 2 жыл бұрын
Is there a way I can turn this information into a table for my website? It's mostly for my music collection so I have information about bitrate, file format, year released etc.
@khaledabdelaziz357
@khaledabdelaziz357 6 жыл бұрын
nice
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
Thanks.
@thonglequang9795
@thonglequang9795 2 жыл бұрын
I run the code in VSCode but there is nothing in my debugger console. It said "No debugger available, can not send 'variables' ". Where is my missing extension in my VSCode ?
@augischadiegils.5109
@augischadiegils.5109 2 жыл бұрын
❤️❤️❤️
@stebbi1337
@stebbi1337 5 жыл бұрын
Dude.... You are beautiful :)
@kartikmalani7004
@kartikmalani7004 4 жыл бұрын
Great!!!!
@oksanahladushchak4076
@oksanahladushchak4076 5 жыл бұрын
How do you open console in Visual Studio code for running html file? Thank you
@nyubisensei1322
@nyubisensei1322 3 жыл бұрын
I tried to show me my data in the browser, like in the video but for some reason its empty, the only thing that I can see is the Title. Any knows why ?
@HumeraSheikh-s2p
@HumeraSheikh-s2p Жыл бұрын
learn by doing
@liamdavis492
@liamdavis492 5 жыл бұрын
4:20 you mean colon, right?
@ahmedthegreat3973
@ahmedthegreat3973 4 жыл бұрын
Can I Use It To Save The Email A User Is Signed It Currently?
@Enrish123
@Enrish123 6 жыл бұрын
I don't get that why don't you just make these objects with arrays and so on in your vanilla JavaScript? You are copying it anyway in the same form. Thank you for an answer. :)
@Enrish123
@Enrish123 6 жыл бұрын
Is it just to have an overview of objects?
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
The point of the video is not to learn JavaScript but instead to learn JSON. JSON has a different syntax than JavaScript objects so I had to show how to make JSON in its own file. I then copied it over to show that JSON can be integrated easily with JavaScript and how you can convert from strings to objects.
@Enrish123
@Enrish123 6 жыл бұрын
I see. Thank you :)
@bernardwodoame9850
@bernardwodoame9850 2 жыл бұрын
Bro isn't there a way to get the Json by not manually copying the code?
@HumeraSheikh-s2p
@HumeraSheikh-s2p Жыл бұрын
Learn Json nice
@ryanclemons1
@ryanclemons1 4 жыл бұрын
I watched this video then made a full AAA game.
@rgby1367
@rgby1367 4 жыл бұрын
json is way easier than i thought...
@aleezasmith392
@aleezasmith392 5 жыл бұрын
Hi sir,I am using datatable, but it is showing me datatable error json invalid response error
@aleezasmith392
@aleezasmith392 5 жыл бұрын
How I can fix it please help me
@speedlearner
@speedlearner 5 ай бұрын
Can JSON be parsed by using Javascript? I know that XML can't be parsed with Javascript. If anyone wants to parse XML, they either have to use SQL or the eXist database. I hope you can answer my question.
@gz3442
@gz3442 6 жыл бұрын
make other json vs xml plz
@hansjorgenclausen6437
@hansjorgenclausen6437 11 ай бұрын
In the video you keep saying semi-colon, but you are showing colon.
@dwiforex
@dwiforex 3 жыл бұрын
@NotImpossible
@NotImpossible 6 жыл бұрын
and how we can bypass json login ,,, thank you
@yahiabajbouj5688
@yahiabajbouj5688 6 жыл бұрын
What is mean a crash ?
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
A crash course is a saying people use when talking about an introductory course that covers the most important concepts of a topic but does not go into super deep breakdowns.
@johnweir3168
@johnweir3168 2 жыл бұрын
This is a colon : This is a semicolon ;
@ankitvashisht7350
@ankitvashisht7350 6 жыл бұрын
First view 😀
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
You beat me by quite a bit 😜
@ankitvashisht7350
@ankitvashisht7350 6 жыл бұрын
@@WebDevSimplified yupp ! Approx 4 min. 🤣
@sliceoflife5812
@sliceoflife5812 2 жыл бұрын
Ayo that's my name
@macknstyle
@macknstyle 8 ай бұрын
semicolon(;) != colon(:)
@cyborgdale
@cyborgdale Жыл бұрын
You keep saying "semicolon" whereas you show (and mean) "colon". Please correct this.
@mrgamerpug6248
@mrgamerpug6248 4 жыл бұрын
NICE NICE
@poornarammohan2949
@poornarammohan2949 8 ай бұрын
hello
@mrgamerpug6248
@mrgamerpug6248 4 жыл бұрын
Hi Hi..
@stephennehemiah
@stephennehemiah 6 жыл бұрын
No Stack to Full Stack LoL
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
That is the hope 😜
@tselgertenger8627
@tselgertenger8627 4 жыл бұрын
10Q
@HumeraSheikh-s2p
@HumeraSheikh-s2p Жыл бұрын
test comment
@sed4454
@sed4454 4 жыл бұрын
the tutorial guy was a stoner
@paulcurious2324
@paulcurious2324 6 жыл бұрын
"as a programmer or as web developer" - excuse me! :/
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
What is wrong with this statement?
@paulcurious2324
@paulcurious2324 6 жыл бұрын
@@WebDevSimplified i really don't care if anything's wrong with it - just felt like creating a scene(lol)
@ruthlessdestroyer9106
@ruthlessdestroyer9106 5 жыл бұрын
Thanks
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,3 МЛН
Learn JavaScript - Full Course for Beginners
3:26:43
freeCodeCamp.org
Рет қаралды 19 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Programming Is NOT Enough | Add these 7 skills…
13:19
Travis Media
Рет қаралды 424 М.
JSON Crash Course
24:49
Traversy Media
Рет қаралды 1 МЛН
APIs for Beginners - How to use an API (Full Course / Tutorial)
3:07:07
freeCodeCamp.org
Рет қаралды 3,1 МЛН
Learn JSON files in 10 minutes! 📄
10:09
Bro Code
Рет қаралды 70 М.
APIs for Beginners - How to use an API (Full Course / Tutorial)
2:19:33
freeCodeCamp.org
Рет қаралды 4,5 МЛН
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 298 М.
JavaScript Functions Crash Course
1:36:54
freeCodeCamp.org
Рет қаралды 200 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН