How To Send JSON & Set Header Request On Net.Httppost() Method?
1. How to send JSON data? I've tried JSON.stringify() but it didn't work as my expectation.
2. How to set its header request?
Here I attach my basic code to make a simple POST request to JSON Placeholder Fake API. I'm curious how to send JSON & how to set its header request.
Run this code & you will see the following log in console:
var resPost = Net.hTTPPost(
resPost = JSON.parse(resPost)
Hope someone in this community can help me solve this problem. Thanks in advance.