Hi,
I'm trying to send a simple JSON via HTTP "PUT" command, but keep getting the following error:
{
"errortext": "JSON malformed in line 1, position 1. JSON malformed. Was expecting: \" 0-9 null true false { [.",
"errornumber": 7
}
The very original JSON which have worked on other software is (host censored):
PUT /connector/relations/handleRelation HTTP/1.1
Host: XXX.XXXX.fi
Authorization: Basic c29hcDpzb2Fw
Content-Length: 145
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="data"
{"company": "Test Company"}
----WebKitFormBoundary7MA4YWxkTrZu0gW
I have tried to simply copy/paste this into body field, and also tried to type the headers into the "Headers" field on HTTP task but no change whatsoever.
Does anyone have idea what could cause the "JSON malformed" error, and what would be the right structure for the JSON?
Thanks in advance!