n8n Β· JSON & objects

n8n ?. (optional chaining)

Returns undefined instead of throwing an error when a value along the path is missing.

Syntax

object?.key?.nested

Example

$json.customer?.address?.city

Result: undefined (no error)

Practice ?. (optional chaining) β€” free interactive labs

More n8n json & objects functions