Intro to JSON for Node-RED

Sdílet
Vložit
  • čas přidán 9. 06. 2024
  • Learn the basics of JSON for the IoT. This video shows the structure and real-world use of JavaScript Object Notation or "JSON". Everything you need to know is covered: the different types of values that can be used, the required syntax, and how to reference specific properties. To bring it into the real world, Node-RED is used to show how easy it is to use JSON with live data from an API.
    00:00 Introduction
    01:21 Generic example
    02:15 String value
    02:52 Additional number properties
    03:26 Boolean properties
    03:59 The "no value" null keyword
    04:46 Storing multiple values in ordered lists
    05:35 Objects as values
    06:19 Referring to sub-properties
    06:51 Real-world weather data
    07:38 Viewing JSON in "PrettyPrint"
    08:15 Viewing JSON in the Node-RED debug pane
    09:37 Grabbing a specific value
    10:33 Getting the path to a sub-property
    11:16 Getting data from arrays
    12:14 Conclusion
    Learn More:
    www.opto22.com/
    nodered.org/docs/user-guide/m...
    www.json.org/json-en.html
    discourse.nodered.org/
    forums.opto22.com/
    More FREE online training
    training.opto22.com/
    OpenWeatherMap tutorials:
    • Quickly Get OpenWeathe...
    • How to use APIs with N...
    All Opto 22 products are designed, manufactured, and supported in the U.S.A. from our Temecula, California headquarters and factory.
    #api #nodered #node #groov #JSON #IoT #Tutorial #learnprogramming #programming #IIoT #automation #javascript

Komentáře • 55

  • @erikderuiter7475
    @erikderuiter7475 Před rokem +2

    Wow, you have many gifts, one being able to teach in a way that is so understandable and make things clear which other people could not do... THANK YOU!

  • @Opto22
    @Opto22  Před 2 lety +8

    Great tutorial on JSON!!

  • @kristian4805
    @kristian4805 Před rokem +1

    Thanks, I have needed this for a long time. So much time spent guessing how I get get a specific value, etc.

  • @MyImperfectEcoJourney
    @MyImperfectEcoJourney Před 11 měsíci

    Great video, really easy to understand and follow with the Open Weather API - got me started on my Node Red Journey, thank you. 😀

  • @BrianJurkowski
    @BrianJurkowski Před 2 lety +4

    THANK YOU for this! JSON always seemed so elusive and odd to me. Now that I understand it (thanks to your video!) It's actually quite simple!
    I also appreciate the high quality of video production and great audio. That comibined with the useful content lead me to subscribing immediately. I hope to see more videos from you soon.
    Cheers!

    • @Opto22
      @Opto22  Před rokem

      You're very welcome!

  • @renegamero
    @renegamero Před 2 lety +4

    Fantastic video!! Bravo.

  • @romanykemp9042
    @romanykemp9042 Před rokem

    Absolutely fantastic presentation you created here! Thank You!

  • @andymok7945
    @andymok7945 Před rokem

    Thanks. Very well explained. I understood bits and pieces before, but now more.

    • @Opto22
      @Opto22  Před rokem

      Glad it was helpful!

  • @LeTomasAHUMADA
    @LeTomasAHUMADA Před rokem +1

    Excellent! I was trying to analyse the data from the OpenWeather using a Modicon M262. This video has helped me to understand the syntax and access to the right data. Thanks !!!😎👍

  • @joeking5211
    @joeking5211 Před rokem +1

    Very well done, very helpful & clear

  • @ronsflightsimlab9512
    @ronsflightsimlab9512 Před 3 měsíci

    THANK YOU!!!! I needed this.

  • @edwaaij4752
    @edwaaij4752 Před rokem

    Thank you . Clear and clear explanation.

  • @higiniofuentes2551
    @higiniofuentes2551 Před rokem +1

    Thank you for this very useful video!

    • @Opto22
      @Opto22  Před rokem +1

      You're very welcome!

  • @alexanderkirchnerat
    @alexanderkirchnerat Před 11 měsíci

    A perfect video! Thank you so much!

    • @Opto22
      @Opto22  Před 11 měsíci

      Glad it was helpful!

  • @michaeljeffery7466
    @michaeljeffery7466 Před 2 lety +1

    Fantastic guide/outline. I watched from start to finish, when; if you have some time make a follow-up for more indepth/advanced JSON tutorials.

    • @Opto22
      @Opto22  Před 2 lety +2

      Thanks, will do!

  • @riseiot
    @riseiot Před rokem

    Very good explanatory video. Thanks for the efforts

  • @noweare1
    @noweare1 Před rokem +1

    Nice video, helped a lot, thanks.

  • @TimCaesens
    @TimCaesens Před 2 lety

    Thx for the clear explanation!

  • @manosmorfiadakis1679
    @manosmorfiadakis1679 Před rokem

    Pretty Helpful

  • @lalimorini6087
    @lalimorini6087 Před rokem

    Thanks!!! Please, more js functions in node-red 🙏🏼🙏🏻

    • @noweare1
      @noweare1 Před rokem

      I second the motion.

    • @Opto22
      @Opto22  Před rokem

      We'll make a note! Thanks for watching!!

  • @billgourlay5249
    @billgourlay5249 Před 2 lety +1

    Nice !

  • @d3rsch0rsch
    @d3rsch0rsch Před 9 měsíci

    Awesome video (and the whole series) Thanks for that!
    One question: I find filtering out specific values from a message an elegant solution. Like you did in the debug node. However, how can i do the same within the flow, not just for the debug output? Is there an easy way?
    Thanks in advance!

  • @TomParish
    @TomParish Před 2 lety +2

    May I ask, do you know if you can get NodeRed to respond to a JSONP (or JSON-P)? I can't seem to get it to return a payload from that particular device. I know for a fact the device (which is old) is a JSONP interface. Any tips or workaround would be appreciated. And ... man you nailed this tutorial. I've been looking for a simple straight forward video of this nature. I'm pass it along to others.

    • @Opto22
      @Opto22  Před 2 lety

      Thanks for watching! It's great to hear that the video was helpful. What device are you using that uses JSONP? And are you using HTTP to send/receive the data, or something else?

  • @manologitech
    @manologitech Před 9 měsíci

    Great

    • @Opto22
      @Opto22  Před 6 měsíci

      thanks for your support!

  • @higiniofuentes2551
    @higiniofuentes2551 Před rokem +1

    You began with very useful info, but I would prefer to have a sample with the original object you created in the beginning!

  • @iratigaritano3174
    @iratigaritano3174 Před 2 lety

    In node-red the information about fft node is very poor. Could you make a video explaining it use? Thank you

  • @sarangautointegra
    @sarangautointegra Před 11 měsíci

    Hi, friend,
    Very goods video..
    But how do you have tutorial for format number, take from mqtt
    Example in your sample
    "count": 22,
    May be 22 to changing number from MQTT..?
    Thanks friend

  • @carlosflorido6682
    @carlosflorido6682 Před 2 lety +2

    👏👏👏👏👏

    • @Opto22
      @Opto22  Před 2 lety

      Thank you so much!!

  • @sebastiantoulier5956
    @sebastiantoulier5956 Před rokem

    PC to an external monitor and I'm watcNice tutorialng tNice tutorials video on one screen and working through exactly what Michael is doing and it is a big

  • @erendogan7317
    @erendogan7317 Před rokem

    guys you need to click 3 dots at right side of "debug" to start debugging I wasted 15 mins to understand why I dont see incoming values :(

  • @hoegge
    @hoegge Před 2 lety +1

    It is not a "parsed JSON object" it is "Parse JSON to JS Object". The current term is confusing and leads people to think it is a "JSON object", which is not the case. JSON is a string.

    • @Opto22
      @Opto22  Před 2 lety +1

      Thanks for clarifying, and thanks for watching!