Add Dumas JSON array iterator node
This commit is contained in:
13
README.md
13
README.md
@@ -39,6 +39,11 @@
|
||||
- Output: `INT`
|
||||
- Returns the length of a JSON array.
|
||||
|
||||
- `Dumas JSON Array Iterator`
|
||||
- Inputs: `json_input`, `index`, `mode`
|
||||
- Outputs: `item`, `current_index`, `total_items`
|
||||
- Returns the current array item and position, with `mode` set to `fixed`, `incr`, or `decr`.
|
||||
|
||||
All nodes live in the `Dumas/JSON` category.
|
||||
|
||||
## Installation
|
||||
@@ -77,6 +82,14 @@ settings.render.width
|
||||
{"enabled": true, "retries": 3}
|
||||
```
|
||||
|
||||
`Dumas JSON Array Iterator` clamps to valid bounds:
|
||||
|
||||
```text
|
||||
fixed -> use index as-is
|
||||
incr -> use index + 1
|
||||
decr -> use index - 1
|
||||
```
|
||||
|
||||
## Roadmap
|
||||
|
||||
This repo is intended to grow into a broader set of Dumas-branded generic utility nodes, including JSON helpers and adjacent data-manipulation tools.
|
||||
|
||||
Reference in New Issue
Block a user