Hello,
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.
My problem with the calculation is that the internal conversion to JSON will result in a change of the content. See the example:
“fNumber”:8.0, → becomes “fNumber”:8,
I think I have already tried everything, but I can’t get the raw data into the value field of crypto. These are my tests:
- {{JSON.stringify($json[“body”])}} → convert issue 8.0 becomes 8
- {{$binary.data}} → it is not the data content it is: [Object: {“mimeType”:“application/json”}]
- Move Binary Data - Modul → same converting error.
- Set Webhook with Option “Binary Data”, the hook is not triggered. Only when i set the option to “Raw Data”. (“content-type”: “application/json”)
How can i get the original raw data from the Body of the Request to put it into the Value from Crypto?
Information on your n8n setup
- **n8n version:latest on-premise
- **Database you’re using (default: SQLite):SQLite
- **Running n8n with the execution process [own(default), main]:own
- **Running n8n via [Docker, npm, n8n.cloud, desktop app]:npm