skgandikota/JSON Path Extract
Parse a JSON string and extract values using dot notation paths. Chain after any action that outputs JSON.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| json | The JSON string to parse. | yes | — |
| path | Dot notation path to extract a value (e.g. "user.name", "items[0].id", "data.tags[1]"). | no | "" |
| paths | JSON object mapping output names to dot notation paths (e.g. {"name": "user.name", "id": "user.id"}). | no | {} |
Outputs
| name | description |
|---|---|
| value | The extracted value from the "path" input. Returns JSON string for objects/arrays, raw value for primitives. |
| values | JSON object with all extracted values from the "paths" input. |
| keys | Comma-separated list of top-level keys in the parsed JSON. |
| length | Length of the root element if it is an array, or number of top-level keys if object. |
| is_array | Whether the root JSON element is an array (true/false). |
| is_object | Whether the root JSON element is an object (true/false). |