n8n Β· JSON & objects

n8n JSON.stringify()

Converts an object or array into a JSON string. Pass an indent like 2 to pretty-print.

Syntax

JSON.stringify(value, [replacer], [indent])

Example

JSON.stringify({ plan: 'pro' })

Result: {"plan":"pro"}

Practice JSON.stringify() β€” free interactive labs

More n8n json & objects functions