I have a webhook that provides me with a body in JSON form. For authentication the manufacturer provides a signature code. This is calculated with crypto. The calculation needs the raw data of the body.
Hi @Hans_Wurst, first of all, welcome to the community
I’m sorry to hear you’re having trouble.
This would be because n8n is a Javascript application and there is no difference between 8.0 and 8 in JavaScript, both would be considered of type number. You will find the same behaviour outside of n8n as well (e.g. when typing console.log(8.0) in your browser console it prints 8). This is also reflected in JSON where no distinction between integer and floating-point types exists.
So to preserve the original value, you would need to work with - for example - a String instead of JSON. Would this approach work for you?
Example Workflow
When POSTing a JSON body to my webhook URL like this:
This seems like what I need, but I no longer see the Move Binary Data node. Any idea how to do this 3 years later? The closest thing seems to be the Convert to File node, but I don’t need to work with files; I just need access to the raw webhook request body, but I can’t figure out how.