Learn JSON - Full Crash Course for Beginners

Поделиться
HTML-код
  • Опубликовано: 2 дек 2018
  • Learn everything you need to know about JSON in 10 minutes.
    You will learn:
    - what JSON is,
    - why JSON is important,
    - what JSON is used for,
    - the syntax of JSON,
    - and see multiple examples of JSON.
    JSON (JavaScript Object Notation) is the most popular data representation format, and is one of the most important, and easiest concepts you can learn in programming. It allows you to create APIs, config files, and structured data. We will be covering all of the terminology, and going through live examples of all the different JSON types.
    Tutorial created by Web Dev Simplified. Check out their channel for more great content: / @webdevsimplified
    Twitter: / devsimplified
    --
    Learn to code for free and get a developer job: www.freecodecamp.org
    Read hundreds of articles on programming: medium.freecodecamp.org

Комментарии • 167

  • @WebDevSimplified
    @WebDevSimplified 5 лет назад +204

    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 5 лет назад +1

      Web Dev Simplified how do i access the json file from js without putting the same json to a variable?

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад +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 5 лет назад +1

      Web Dev Simplified okay thanks. I enjoyed your video :) Instant sub to your channel.

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад +1

      @@januwee6356 Thanks for the support! I really appreciate it.

    • @kevyyar
      @kevyyar 5 лет назад +1

      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.

  • @balajig7011
    @balajig7011 5 лет назад +72

    worthy 12 minutes in a day

  • @codenameFourtySeven
    @codenameFourtySeven 4 года назад +5

    Top Effort! I learnt everything I need to about JSON! Legend

  • @shovondas26
    @shovondas26 5 лет назад +17

    Watched and Practiced with Him, My Concept about JSON is Fully Clear Now.

  • @thiagosilvafarias1893
    @thiagosilvafarias1893 4 года назад +14

    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.

  • @ndrakeb8926
    @ndrakeb8926 3 года назад

    JSON concept is clear now.
    Thank You for simplifying :)

  • @klajdipepa2654
    @klajdipepa2654 2 года назад

    I'm constantly trying to find more time to watch videos from this channel!

  • @PaulMihail
    @PaulMihail 3 года назад +1

    Your videos are amazing! Please keep up the good work!

  • @leo_nidas
    @leo_nidas 2 года назад

    Extremely helpful! Thank you!

  • @lank_asif
    @lank_asif 5 лет назад +34

    Thank you for the noob friendly tutorial that explained the subject matter very clearly. I love this channel and what it represents.

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад +2

      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 5 лет назад +2

      @@WebDevSimplified Well I, and others, are very thankful for your efforts.

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад +2

      @@lank_asif I am incredibly thankful to have amazing people like you watching my videos.

    • @lank_asif
      @lank_asif 5 лет назад +2

      @@WebDevSimplified I can honestly state that is is our pleasure. Cheers, friend.

    • @deminouk8347
      @deminouk8347 5 лет назад +1

      Lank Asif I love noob friendly

  • @mohammadahmedragab837
    @mohammadahmedragab837 Год назад

    thank you so much, simple, concise , excellent explanation of JSON :)

  • @chavakahana8237
    @chavakahana8237 2 года назад

    Thank you - your explanation is clear and very helpful

  • @joep1131
    @joep1131 4 года назад

    very very good to the point and clean and short thanks

  • @gregfletcher7514
    @gregfletcher7514 5 лет назад +3

    Great beginners guide! Thank you!

  • @rajesht9702
    @rajesht9702 4 года назад

    Thank you So much @Web Dev Simplified

  • @samuelosoba
    @samuelosoba 5 лет назад +1

    very useful! simple and straight forward.

  • @ramankumar41
    @ramankumar41 Год назад

    Thanks dude great work !!!

  • @md9936
    @md9936 4 года назад

    thanks a lot for share great video man!

  • @1234mohitmhatre
    @1234mohitmhatre 5 лет назад +3

    Dude Thanks Great Video finally I understand json a huge thumbs up to you bro

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад

      Thanks! I am really glad the video was able to help.

  • @666222333111
    @666222333111 5 лет назад +4

    Saved, going to have a look later. :)

  • @RaghavKhullar
    @RaghavKhullar 5 лет назад +1

    Worth it!!

  • @dennisbunarta1190
    @dennisbunarta1190 11 месяцев назад +1

    I love this guy!! God bless him!

  • @luisf7105
    @luisf7105 Год назад +2

    Thank you sooooo much for this upload, it was really helpful... Only thing , you were confusing me with semicolon (;) colon (:).👊🏽

  • @AVINASH__SHARMA
    @AVINASH__SHARMA 5 месяцев назад +1

    small correction at 1:04 json is subset of javascipt not superset!

  • @H76Pro
    @H76Pro 4 года назад +3

    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"

  • @chargoy9178
    @chargoy9178 5 лет назад +2

    Great video, simple and focus.
    Thanks

  • @stephenoshaughnessy2279
    @stephenoshaughnessy2279 Год назад

    Now that we've gotten to fetch in your javascript course, I need to get JSON experience.

  • @Faizy_Ahmad
    @Faizy_Ahmad 3 года назад

    Great Place to learn

  • @molokomokubedi631
    @molokomokubedi631 3 года назад

    Thanks!!

  • @HasithaSameeraNova
    @HasithaSameeraNova 5 лет назад +1

    Well explained. Thanks!

  • @sabuein
    @sabuein 2 года назад

    Thank you.

  • @danishfaridi8564
    @danishfaridi8564 3 года назад

    Worth the time

  • @jozsefszabados1183
    @jozsefszabados1183 2 года назад

    Thanks bro!

  • @kartikmalani7004
    @kartikmalani7004 4 года назад

    Great!!!!

  • @linhang3942
    @linhang3942 5 лет назад +1

    tks for explanation !

  • @user-en7qc8kw7t
    @user-en7qc8kw7t Год назад

    thank you

  • @ruthlessdestroyer9106
    @ruthlessdestroyer9106 5 лет назад

    Thanks

  • @jrobinsam
    @jrobinsam 5 лет назад +3

    Could have included JSON.stringify explanation too...Good work..!!

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад +1

      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.

  • @utcca7758
    @utcca7758 5 лет назад +7

    Jason! Jason! Json! Haha good explanation video.

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад

      Thanks. I feel like all web development names and acronyms are quite unintuitive in how they should be pronounced.

  • @milankbudha
    @milankbudha 3 года назад

    freecodecamp and web dev simplified are best

  • @udhayasankar113
    @udhayasankar113 5 лет назад +2

    Excellent explanation...

  • @Albovsky
    @Albovsky 5 лет назад +1

    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 2 года назад

      Sending some data from the server to the client so it can be displayed on the web page or vice versa

  • @predo2068
    @predo2068 5 лет назад +1

    Awesome video! Everything is comprehensive and It's a good start for beginners. 'Looking forward to next videos ;)

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад +1

      Thanks. I try to make all my videos focused on giving as much quality content as possible without being needlessly complicated.

  • @pratham5746
    @pratham5746 4 года назад +1

    Definitely worth 12 minutes instead of wasting time and doing nothing

  • @BryantCabrera
    @BryantCabrera 5 лет назад +6

    Thank you for this crash course!
    Btw, you are so handsome 😍

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад +6

      Thank you and thank you again. You are too kind.

  • @SubhanAli-mb4ny
    @SubhanAli-mb4ny 5 лет назад +1

    nice video dear....
    thanks

  • @easirmaruf7061
    @easirmaruf7061 5 лет назад +1

    just awesome

  • @glgeorgiou
    @glgeorgiou 5 лет назад +3

    Very interesting introductory video. How can i link and call an external json file instead of importing into the .html file?

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад +2

      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.

  • @rohittanwer8126
    @rohittanwer8126 5 лет назад +3

    Hmm.... One more nice video. Ok gonna see it now

  • @dakshamdev
    @dakshamdev 4 года назад +16

    {
    "name" : "This Video",
    "rating" : 6,
    "like" : true
    }

    • @everythinginacube.7960
      @everythinginacube.7960 3 года назад

      {
      “message”: “Yeah you are right”,
      “rating”: 10,
      “like”: true
      }

  • @mr.anonymous6374
    @mr.anonymous6374 4 года назад

    Hi What code editor do you use ? Is it ATOM or Sublime ?

  • @smellthel
    @smellthel 3 года назад +1

    Thank you br0ther

  • @oksanahladushchak4076
    @oksanahladushchak4076 4 года назад

    How do you open console in Visual Studio code for running html file? Thank you

  • @ankitvashisht7350
    @ankitvashisht7350 5 лет назад +2

    Very good explanation.love it 😘

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад +1

      Thank you!

    • @ankitvashisht7350
      @ankitvashisht7350 5 лет назад +1

      @@WebDevSimplified I also subscribed your channel. It also has great content 😘😍. Thank you so much ! 🤗

  • @brandonguerrero9485
    @brandonguerrero9485 5 лет назад +3

    You meant to say colon after the key values I think. I got it though no worries!

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад +1

      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.

  • @gmkhallyu
    @gmkhallyu Год назад

    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.

  • @Sage16226
    @Sage16226 5 лет назад +1

    great video

  • @user-en7qc8kw7t
    @user-en7qc8kw7t Год назад

    learn by doing

  • @carmelomotolese287
    @carmelomotolese287 5 лет назад +2

    New series? So goooood :)

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад +1

      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.

  • @augischadiegils.5109
    @augischadiegils.5109 2 года назад

    ❤️❤️❤️

  • @khaledabdelaziz357
    @khaledabdelaziz357 5 лет назад +2

    nice

  • @esra_erimez
    @esra_erimez 5 лет назад +2

    By the way, YAML 1.2 *is* a superset of JSON.

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад

      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 5 лет назад +1

      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 5 лет назад +3

      @@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.

  • @christooss
    @christooss 5 лет назад +7

    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 5 лет назад +10

      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.

  • @user-en7qc8kw7t
    @user-en7qc8kw7t Год назад

    Learn Json nice

  • @ahmedthegreat3973
    @ahmedthegreat3973 3 года назад

    Can I Use It To Save The Email A User Is Signed It Currently?

  • @dwiforex
    @dwiforex 3 года назад

  • @thonglequang9795
    @thonglequang9795 Год назад

    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 ?

  • @stebbi1337
    @stebbi1337 4 года назад +7

    Dude.... You are beautiful :)

  • @NotImpossible
    @NotImpossible 5 лет назад +2

    and how we can bypass json login ,,, thank you

  • @d74g0n
    @d74g0n 5 лет назад +4

    2:32 "undefined" ?

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад +5

      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.

  • @gz3442
    @gz3442 5 лет назад

    make other json vs xml
    plz

  • @femaledeer
    @femaledeer 5 лет назад +1

    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 5 лет назад +1

      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.

  • @nyubisensei1322
    @nyubisensei1322 2 года назад

    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 ?

  • @eduarduskresnapurnama2113
    @eduarduskresnapurnama2113 5 лет назад +1

    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.

  • @mrgamerpug6248
    @mrgamerpug6248 4 года назад

    NICE NICE

  • @esra_erimez
    @esra_erimez 5 лет назад +1

    Interesting choice of hair style.

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад +1

      Thanks. I will take that as a compliment.

    • @esra_erimez
      @esra_erimez 5 лет назад

      You're welcome. It was a compliment

  • @rgby1367
    @rgby1367 3 года назад

    json is way easier than i thought...

  • @bernardwodoame9850
    @bernardwodoame9850 Год назад

    Bro isn't there a way to get the Json by not manually copying the code?

  • @ryanclemons1
    @ryanclemons1 3 года назад

    I watched this video then made a full AAA game.

  • @aleezasmith392
    @aleezasmith392 5 лет назад

    Hi sir,I am using datatable, but it is showing me datatable error json invalid response error

  • @johnweir3168
    @johnweir3168 Год назад

    This is a colon : This is a semicolon ;

  • @ankitvashisht7350
    @ankitvashisht7350 5 лет назад +2

    First view 😀

  • @poornarammohan2949
    @poornarammohan2949 2 месяца назад

    hello

  • @Enrish123
    @Enrish123 5 лет назад +1

    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 5 лет назад

      Is it just to have an overview of objects?

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад +1

      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 5 лет назад

      I see. Thank you :)

  • @macknstyle
    @macknstyle 2 месяца назад

    semicolon(;) != colon(:)

  • @Crunkboy415
    @Crunkboy415 5 лет назад +1

    Don't you mean colon? You have : Semicolon is ;

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад

      I do. I didn't catch it until editting though and then it was too late to fix.

  • @liamdavis492
    @liamdavis492 4 года назад +1

    4:20 you mean colon, right?

  • @hansjorgenclausen6437
    @hansjorgenclausen6437 5 месяцев назад

    In the video you keep saying semi-colon, but you are showing colon.

  • @sliceoflife5812
    @sliceoflife5812 Год назад

    Ayo that's my name

  • @yahiabajbouj5688
    @yahiabajbouj5688 5 лет назад

    What is mean a crash ?

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад +2

      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.

  • @mrgamerpug6248
    @mrgamerpug6248 4 года назад

    Hi Hi..

  • @stephennehemiah
    @stephennehemiah 5 лет назад +1

    No Stack to Full Stack LoL

  • @tselgertenger8627
    @tselgertenger8627 3 года назад

    10Q

  • @cyborgdale
    @cyborgdale 6 месяцев назад

    You keep saying "semicolon" whereas you show (and mean) "colon". Please correct this.

  • @user-en7qc8kw7t
    @user-en7qc8kw7t Год назад

    test comment

  • @sed4454
    @sed4454 3 года назад

    the tutorial guy was a stoner

  • @paulcurious2324
    @paulcurious2324 5 лет назад +1

    "as a programmer or as web developer" - excuse me! :/

    • @WebDevSimplified
      @WebDevSimplified 5 лет назад

      What is wrong with this statement?

    • @paulcurious2324
      @paulcurious2324 5 лет назад

      @@WebDevSimplified i really don't care if anything's wrong with it - just felt like creating a scene(lol)

  • @reassume4826
    @reassume4826 5 лет назад +1

    Thanks

  • @user-en7qc8kw7t
    @user-en7qc8kw7t Год назад

    test comment