I am using webhook in my project. So webhook hit an endpoint that i created. When i used node js i used a body-parser
. So it gives req.body
as
"events":[],"firstEventSequence": 0,"lastEventSequence": 0, "entropy": "INYZZZJXMEHHCOCQNKWN"}
As here is space between 0
and firstEventSequence
.
but in loopback when i convert req.body
to JSON.stringfy
i get as
"events":[],"firstEventSequence":0,"lastEventSequence":0,"entropy":"INYZZZJXMEHHCOCQNKWN"}
So here no spaces due to which hash of request body is different. So what should i do so that loopback gives me request body similar to node js ?