Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap
In this JSON Tutorial for Beginners, we cover what JSON is, what JSON is used for, and how to work with JSON in Javascript.
▶ This video is part of the JavaScript Tutorials for Beginners Playlist found here: https://www.youtube.com/playlist?list=PL0Zuz27SZ-6Oi6xNtL_fwCrwpuqylMsgT
Quick Concepts outline:
JSON:
(00:00) Intro
(0:11) JSON === JavaScript Object Notation
(0:15) What is JSON and what is it used for?
(0:49) Starting with a JavaScript Object
(2:10) Convert a Javascript Object to JSON: JSON.stringify()
(2:40) Comparing the object to the stringified JSON
(3:16) Where's the method? It's gone!
(3:38) JSON is definitely string data
(4:20) Convert JSON to a Javascript Object: JSON.parse()
(5:00) It is an object again!
(5:20) Our parsed object does not contain the method
(6:00) A summary of the process: From object to JSON string to parsing JSON to create a new object
Further Reading:
MDN Web Docs:
JSON Object: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON
JSON reference: https://www.json.org/json-en.html
More Beginner JS Videos:
freeCodeCamp: https://youtu.be/PkZNo7MFNFg
Traversy Media: https://youtu.be/hdI2bqOjy3c
The Net Ninja: https://youtu.be/iWOYAxlnaww
Follow Me:
Twitter: https://twitter.com/yesdavidgray
Reddit: https://www.reddit.com/user/DaveOnEleven
Medium: https://medium.com/@davegray_86804
#json #tutorial #beginners