OptoBlog

Introduction to JSON for Node-RED

Posted by Janice Colmer on Mar 18, 2022 8:00:00 AM

New Opto 22 Developer Broadcast video makes the JSON data format easy to understand.

OptoBlog followers are most likely familiar with Terry Orchard's Node-RED video series, and he's recently added a new video to that playlist. This time, Terry's goal is to introduce you to the JSON data format, so it's easy to understand and simple to get started with.

Introduction to JSON for Node-RED

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

 

JSON is a common data format used all over the world for web services, IoT applications, APIs, and much more. It's also a standard part of Node-RED.

As Terry mentions in the video, if you haven't worked with JSON before, it might seem a bit daunting. This video hopes to alleviate that fear. It provides a generic example of what JSON is and what you can use it for, and then you'll get some real-world examples so you can make the most of it. Watch now.

WATCH INTRO TO JSON

 

Topics: Videos, IoT, Node-RED, developer, json

Written by Janice Colmer

Janice has worked at Opto 22 for more than 16 years and is part of the marketing team that strives to share new and relevant content with the automation industry. She enjoys books, camping, country music, and spending time with family and friends.
Find me on:

    Subscribe to Email Updates

    Recent Posts

    Posts by Topic

    see all