Intro to JSON for Node-RED

preview_player
Показать описание
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:

More FREE online training

OpenWeatherMap tutorials:

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
Рекомендации по теме
Комментарии
Автор

Good explanation, thanks.
Have made already something in node red but never understand completely how its really working, now whit your simple explanation it becomes clearer and clearer!

krisdevoecht
Автор

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

kristian
Автор

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

MyImperfectEcoJourney
Автор

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

andymok
Автор

Absolutely fantastic presentation you created here! Thank You!

romanykemp
Автор

Very well done, very helpful & clear

joeking
Автор

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.

michaeljeffery
Автор

Very good explanatory video. Thanks for the efforts

riseiot
Автор

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

higiniofuentes
Автор

If you ever do a tutorial on how to create a flow that will actually accept JSON from a browser or something like Postman - lemme know!

NigelDeans
Автор

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.

TomParish
Автор

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

sarangautointegra
Автор

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!

drschrsch
Автор

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

iratigaritano
Автор

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

sebastiantoulier
Автор

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 :(

erendogan
Автор

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!

BrianJurkowski
Автор

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 !!!😎👍

LeTomasAHUMADA
Автор

Thank you . Clear and clear explanation.

edwaaij
Автор

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

lalimorini