Redis Advanced icon

Redis Advanced

Get, send and update data in Redis with enhanced operations

JSON Get

AI-generated

Summary

Retrieve the JSON value stored at a specified Redis key and JSONPath, optionally formatting the output with indentation, newline, and spacing options.

Inputs

  • Key (required) — The Redis key to get the JSON value from.
  • Path — The JSONPath to retrieve from the value; defaults to root '$'.
  • Options — Formatting options including Indent (string for nested levels), Newline (string at end of lines), and Space (string after colons).

Output shape

a list of JSON objects, each containing the key, path, the retrieved value parsed as JSON if possible, and a boolean indicating if the key exists.

Each input item results in one output item preserving paired input index. Errors can be captured if 'continue on fail' is enabled; otherwise, execution stops on failure.

Examples

Example 1: Retrieve a JSON value at the root path

Set the Key parameter to the Redis key storing JSON and leave Path as default '$'.

Example 2: Retrieve a nested JSON field with formatting

Set Key to the Redis key, Path to the nested JSONPath, and specify formatting Options like indent and newline strings.

Discussion