[TIMOB-20067] HTTPClient: nested JSON object corrupts payload
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Resolved |
| Resolution | Won't Do |
| Resolution Date | 2019-11-13T21:41:54.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | httpclient, json, nested, object |
| Reporter | Patrick Reichardt |
| Assignee | Unknown |
| Created | 2015-09-11T08:56:06.000+0000 |
| Updated | 2019-12-02T23:06:27.000+0000 |
no data is transferred if the nested object is present but emtpy
Hi [~patrickr] After converting nested JSON object to a string, please try to send and let us know.
Hope this helps.var data = { "challenge" : 578, "syncSource" : "weather", "foo" : "bar", "syncParameters" : { "zoo" : "lander", "sequel" : 2 } }; var value = JSON.stringify(data); xhr.send(value);@morahman yes, sending data as a string works - thank you for the hint!
Closing. Support provided fix suggestion.