Expression injection returning objects instead text

Describe the issue/error/question

I am trying to use an expression to inject text, but the result shows objects instead of text. In the expression editor the right result is displayed

What am I doing wrong?

What is the error message (if any)?

no error

Please share the workflow

Share the output returned by the last node

Blockquote Now finish these according to the example and clean these input names to desired result: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Information on your n8n setup

  • n8n version: 0.219.1
  • Database you’re using (default: SQLite): none
  • Running n8n with the execution process [own(default), main]:?
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]: Docker

Hey @LinkedUp_Online,

Have you tried using {{ JSON.stringify( $json["inputs_to_process"] ) }}?

2 Likes

Thanks that fixed the problem!

I have to say its a bit confusing though. Is this expected behavior?

1 Like

Hey @LinkedUp_Online,

It is if you are trying to use an object where a string is expected, We could possibly do a better job of highlighting that the conversion may be needed.

1 Like

Yeah, that could be a good idea. For now thanks for the help! :slight_smile:

2 Likes

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