How do I separate the JSON key/value?

Describe the problem/error/question

Below is a response from a message, how do I separate the Conversation ID and message, so that it reaches the correct user?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Jamaal :wave: Would the Item Lists with Split Out Items work for you? Something like this:

Thanks for replying Emerald, when I attempt to split the list it outputs as:

I think this may be because the JSON is all string.

Ok, so I’ve changed it from a expression to a field and it output data, however it still outputs as a string and is not separated

hi @Jamaal

You don’t need an Item List node, you need to parse the json in order to work with it.

You can do it with Set node or with Code node. I’ve attached both examples

3 Likes

Thanks @barn4k i’ve realised this, solved the issue

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