JSON parameter needs to be valid JSON

i am trying to parse the output from previous node in http request node(generate image description2) but it keeps giving the error

Hi @test Welcome to n8n :n8n: community :tada:

Can you try this expression?

"text": {{ JSON.stringify("Generate an image description based on " + $json.output) }}

Let me know if you need more help!

thankyou soo much it worked.

Yes, JSON doesn’t allow line breaks in the content, so JSON.stringify() will remove those for you.

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