This topic was automatically generated from Slack. You can find the original thread here.
What’s the recommended way to include JSON data payloads in a HTTP push?
I can see there’s a tab for “Body”, and I can choose a application/json content type, but because I have a JSON object that has nested objects within it, I can’t seem to use the UI helper for “Edit Key-Value Pairs”.
Am I right that the only way is to use the raw request body mode, and then just use expressions to include a json object from a previous code step? Will that properly encode things?
Am I right that the only way is to use the raw request body mode, and then just use expressions to include a json object from a previous code step? Will that properly encode things?
Hi , I think this is one way to go. You’ll need to add the header Content-Type: application/json