Need help with parser

I have following response coming from one of the nodes:

[
{
"response": 
{
"text": 
" Here are sample definationcovering the content from the lesson outline on the arm and forearm: [ { "question": "What are the superficial subcutaneous structures of the arm?", "answer": "No specific superficial subcutaneous structures are listed." }, { "question": "What category of arm structures includes vasculature?", "answer": "Vasculature" }, { "question": "What species shows the forearm muscles in the image?", "answer": "Human" } ]"
}
}
]

I only want pure json which is

[{ "question": "What are the superficial subcutaneous structures of the arm?", "answer": "No specific superficial subcutaneous structures are listed." }, { "question": "What category of arm structures includes vasculature?", "answer": "Vasculature" }, { "question": "What species shows the forearm muscles in the image?", "answer": "Human" } ]"

I will always have “:” to identify the start of the json. How can I extract the json? can someone help or point me in the right direction? thanks.

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

hello @sanjsoft

if the response is correct, than that one should do the trick

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