Hi,
I am trying to send data in JSON format to a web site:
The following code works fine with single value elements but fails sending the "tests" object. I'm doing something wrong but cannot figure out what,
s rObj=##class(%Net.HttpRequest).%New()
s rObj.SSLConfiguration="SomeSSL"
d rObj.InsertFormData("account", 484)
d rObj.InsertFormData("vendor", 66)
d rObj.InsertFormData("tests", "[ { ""test"":""1269"", ""name"":""CBC"" } ]")
s sc=rObj.Post("/api/order")
Any help would be greatly appreciated.
Thank you.