Hello community,
I am trying to send a post request.
I need to send JSON data in the body, so I am trying to put my JSON content into a Text variable and trying to pass it to the HTTPClient.POST method (in its 2nd parameter).
When in AL (Visual Studio) editor I paste my JSON content between the 2 single quotations I get an error (red line beneath by entire JSON text).
..
Var
MyContent: Text;
Begin
..
..
MyContent:= '{
"subject": "Something Here",
"expiresIn": "15m",
"private_key": "-----BEGIN PRIVATE KEY-----Something Here-----END PRIVATE KEY-----",
"issuer": "Something Here"
}'
..
HTTPClient.POST(..,MyContent,..)

Not sure how to set my Content for sending a POST request in AL.
Thank you in advance for the advice!