Skip to content

Commit

Permalink
Merge pull request #1156 from flowforge/json-use-case
Browse files Browse the repository at this point in the history
Create json use case
  • Loading branch information
ZJvandeWeg authored Sep 23, 2023
2 parents 3a1390d + 1a14e8d commit 383a3f2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/_includes/core-nodes/json-use-case.md
Original file line number Diff line number Diff line change
@@ -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

<iframe width="100%" height="100%" src="https://flows.nodered.org/flow/f2d01d981b0dcb8b33d01785a39fef3c/share" allow="clipboard-read; clipboard-write" style="border: none;"></iframe>

0 comments on commit 383a3f2

Please sign in to comment.