Intro to JSON for Node-RED

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 มิ.ย. 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

ความคิดเห็น • 55

  • @Opto22
    @Opto22  2 ปีที่แล้ว +8

    Great tutorial on JSON!!

  • @MyImperfectEcoJourney
    @MyImperfectEcoJourney 11 หลายเดือนก่อน

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

  • @erikderuiter7475
    @erikderuiter7475 ปีที่แล้ว +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!

  • @BrianJurkowski
    @BrianJurkowski 2 ปีที่แล้ว +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  ปีที่แล้ว

      You're very welcome!

  • @kristian4805
    @kristian4805 ปีที่แล้ว +1

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

    • @Opto22
      @Opto22  ปีที่แล้ว

      Great to hear!

  • @renegamero
    @renegamero 2 ปีที่แล้ว +4

    Fantastic video!! Bravo.

    • @Opto22
      @Opto22  2 ปีที่แล้ว

      Thanks Rene!

  • @LeTomasAHUMADA
    @LeTomasAHUMADA ปีที่แล้ว +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 !!!😎👍

    • @Opto22
      @Opto22  ปีที่แล้ว +1

      Glad it helped!

  • @andymok7945
    @andymok7945 ปีที่แล้ว

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

    • @Opto22
      @Opto22  ปีที่แล้ว

      Glad it was helpful!

  • @romanykemp9042
    @romanykemp9042 ปีที่แล้ว

    Absolutely fantastic presentation you created here! Thank You!

    • @Opto22
      @Opto22  6 หลายเดือนก่อน

      thanks

  • @joeking5211
    @joeking5211 ปีที่แล้ว +1

    Very well done, very helpful & clear

    • @Opto22
      @Opto22  ปีที่แล้ว

      Thank you!

  • @higiniofuentes2551
    @higiniofuentes2551 ปีที่แล้ว +1

    Thank you for this very useful video!

    • @Opto22
      @Opto22  ปีที่แล้ว +1

      You're very welcome!

  • @ronsflightsimlab9512
    @ronsflightsimlab9512 4 หลายเดือนก่อน

    THANK YOU!!!! I needed this.

  • @edwaaij4752
    @edwaaij4752 ปีที่แล้ว

    Thank you . Clear and clear explanation.

    • @Opto22
      @Opto22  ปีที่แล้ว

      Glad you liked it

  • @alexanderkirchnerat
    @alexanderkirchnerat 11 หลายเดือนก่อน

    A perfect video! Thank you so much!

    • @Opto22
      @Opto22  11 หลายเดือนก่อน

      Glad it was helpful!

  • @michaeljeffery7466
    @michaeljeffery7466 2 ปีที่แล้ว +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  2 ปีที่แล้ว +2

      Thanks, will do!

  • @riseiot
    @riseiot ปีที่แล้ว

    Very good explanatory video. Thanks for the efforts

    • @Opto22
      @Opto22  ปีที่แล้ว

      So nice of you

  • @TimCaesens
    @TimCaesens 2 ปีที่แล้ว

    Thx for the clear explanation!

    • @Opto22
      @Opto22  ปีที่แล้ว

      No worries!

  • @noweare1
    @noweare1 ปีที่แล้ว +1

    Nice video, helped a lot, thanks.

    • @Opto22
      @Opto22  ปีที่แล้ว

      Glad to hear it!

  • @lalimorini6087
    @lalimorini6087 ปีที่แล้ว

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

    • @noweare1
      @noweare1 ปีที่แล้ว

      I second the motion.

    • @Opto22
      @Opto22  ปีที่แล้ว

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

  • @manosmorfiadakis1679
    @manosmorfiadakis1679 ปีที่แล้ว

    Pretty Helpful

    • @Opto22
      @Opto22  ปีที่แล้ว

      Glad it helped

  • @billgourlay5249
    @billgourlay5249 2 ปีที่แล้ว +1

    Nice !

    • @Opto22
      @Opto22  ปีที่แล้ว

      Thanks so much!!!

  • @d3rsch0rsch
    @d3rsch0rsch 9 หลายเดือนก่อน

    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!

  • @higiniofuentes2551
    @higiniofuentes2551 ปีที่แล้ว +1

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

    • @Opto22
      @Opto22  ปีที่แล้ว

      Noted!

  • @TomParish
    @TomParish 2 ปีที่แล้ว +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  2 ปีที่แล้ว

      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 9 หลายเดือนก่อน

    Great

    • @Opto22
      @Opto22  6 หลายเดือนก่อน

      thanks for your support!

  • @iratigaritano3174
    @iratigaritano3174 2 ปีที่แล้ว

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

  • @sarangautointegra
    @sarangautointegra 11 หลายเดือนก่อน

    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 2 ปีที่แล้ว +2

    👏👏👏👏👏

    • @Opto22
      @Opto22  2 ปีที่แล้ว

      Thank you so much!!

  • @sebastiantoulier5956
    @sebastiantoulier5956 ปีที่แล้ว

    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 ปีที่แล้ว

    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 2 ปีที่แล้ว +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  2 ปีที่แล้ว +1

      Thanks for clarifying, and thanks for watching!