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
Great tutorial on JSON!!
Great video, really easy to understand and follow with the Open Weather API - got me started on my Node Red Journey, thank you. 😀
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!
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!
You're very welcome!
Thanks, I have needed this for a long time. So much time spent guessing how I get get a specific value, etc.
Great to hear!
Fantastic video!! Bravo.
Thanks Rene!
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 !!!😎👍
Glad it helped!
Thanks. Very well explained. I understood bits and pieces before, but now more.
Glad it was helpful!
Absolutely fantastic presentation you created here! Thank You!
thanks
Very well done, very helpful & clear
Thank you!
Thank you for this very useful video!
You're very welcome!
THANK YOU!!!! I needed this.
Thank you . Clear and clear explanation.
Glad you liked it
A perfect video! Thank you so much!
Glad it was helpful!
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.
Thanks, will do!
Very good explanatory video. Thanks for the efforts
So nice of you
Thx for the clear explanation!
No worries!
Nice video, helped a lot, thanks.
Glad to hear it!
Thanks!!! Please, more js functions in node-red 🙏🏼🙏🏻
I second the motion.
We'll make a note! Thanks for watching!!
Pretty Helpful
Glad it helped
Nice !
Thanks so much!!!
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!
You began with very useful info, but I would prefer to have a sample with the original object you created in the beginning!
Noted!
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.
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?
Great
thanks for your support!
In node-red the information about fft node is very poor. Could you make a video explaining it use? Thank you
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
👏👏👏👏👏
Thank you so much!!
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
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 :(
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.
Thanks for clarifying, and thanks for watching!