Server send "0" but n8n show null

Describe the problem/error/question

server send “0” but n8n show null, node HTTP Request. Why? how to change it?
Example server send:
{
“Status”: “0”,
“Name”: “aBC”
}

Example n8n show :
{
“Status”: null,
“Name”: “aBC”
}

Information on your n8n setup

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

Hi @jmta, I am sorry for the trouble. Do you have an example workflow for this by any chance?

The reason I am asking is because I tested the below workflow on [email protected]:

And I was seeing the actual "0" value instead of null:

1 Like

If the server’s response is not being automatically parsed as JSON by the HTTP Request node, you can manually parse it using the JSON Parse node in n8n. Add a JSON Parse node after the HTTP Request node and connect the two. In the JSON Parse node settings, you can specify which fields to parse, and this may help resolve the issue.

2 Likes

Thanks , problem resolved

2 Likes

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