Variable from output json missing original formation - losing close bracket

Hello there i have a json output that have the formatting that i want in the options property of the json.

If i import the options property in the next node it is losing its formation. More specifically the values for colors and the values for sizes are losing their close bracket

Thanks in advance.

Its seem that stringify is the solution

Solution : “options”: {{ JSON.stringify($json.options) }}

If you dont stringify n8n way of handling the value “eats” the closing brackets.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.