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 + +