From 1a14e8d59786593ccd4758b6c790caad381ede69 Mon Sep 17 00:00:00 2001 From: MarianRapahel <73583313+MarianRaphael@users.noreply.github.com> Date: Sat, 23 Sep 2023 07:20:02 -0700 Subject: [PATCH] Create json-use-case.md --- src/_includes/core-nodes/json-use-case.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/_includes/core-nodes/json-use-case.md diff --git a/src/_includes/core-nodes/json-use-case.md b/src/_includes/core-nodes/json-use-case.md new file mode 100644 index 0000000000..8dc1b189fc --- /dev/null +++ b/src/_includes/core-nodes/json-use-case.md @@ -0,0 +1,19 @@ +## What's the JSON node in Node-RED used for? + +The JSON node in Node-RED is used for processing JavaScript Object Notation (JSON) data. It allows you to convert between a JSON-formatted string and a JavaScript object, making it highly versatile for tasks involving JSON manipulation. This conversion capability proves to be essential when working with APIs, storing data, or transmitting data between different services. + +## Use Case: Monitoring Equipment Efficiency + +Suppose you have a JSON data stream that comes from different sensors installed on an assembly line in a manufacturing plant. The JSON objects include data such as equipment name, timestamp, and efficiency percentage. You'd like to extract this information and calculate a daily average efficiency for each equipment to help in predictive maintenance and to optimize the production process. + +**JSON Input:** +```json +{ + "equipment": "Drill Press", + "timestamp": "2023-09-22T12:34:56Z", + "efficiency": 89.5 +} +``` +### Flow + +