{ "id": "151115", "key": "TIMOB-20067", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2019-11-13T21:41:54.000+0000", "created": "2015-09-11T08:56:06.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "httpclient", "json", "nested", "object" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-12-02T23:06:27.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "attachment": [], "flagged": false, "summary": "HTTPClient: nested JSON object corrupts payload", "creator": { "name": "patrickr", "key": "patrickr", "displayName": "Patrick Reichardt", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "patrickr", "key": "patrickr", "displayName": "Patrick Reichardt", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1170, "state": "closed", "name": "2019 Sprint 23", "startDate": "2019-11-04T18:38:14.526Z", "endDate": "2019-11-17T18:38:00.000Z", "completeDate": "2019-11-18T16:38:18.423Z", "originBoardId": 114 }, { "id": 1171, "state": "closed", "name": "2019 Sprint 24", "startDate": "2019-11-18T16:40:09.114Z", "endDate": "2019-12-01T16:40:00.000Z", "completeDate": "2019-12-02T23:06:24.654Z", "originBoardId": 114 }, { "id": 1172, "state": "closed", "name": "2019 Sprint 25", "startDate": "2019-12-02T23:08:39.644Z", "endDate": "2019-12-15T23:08:00.000Z", "completeDate": "2019-12-16T05:54:54.518Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "363582", "author": { "name": "patrickr", "key": "patrickr", "displayName": "Patrick Reichardt", "active": true, "timeZone": "Europe/Berlin" }, "body": " no data is transferred if the nested object is present but emtpy", "updateAuthor": { "name": "patrickr", "key": "patrickr", "displayName": "Patrick Reichardt", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-09-11T09:35:22.000+0000", "updated": "2015-09-11T09:35:22.000+0000" }, { "id": "371128", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hi [~patrickr]\r\n\r\nAfter converting nested JSON object to a string, please try to send and let us know.\r\n{code}\r\nvar data = {\r\n\t\"challenge\" : 578,\r\n\t\"syncSource\" : \"weather\",\r\n\t\"foo\" : \"bar\",\r\n\t\"syncParameters\" : {\r\n\t\t\"zoo\" : \"lander\",\r\n\t\t\"sequel\" : 2\r\n\t}\r\n};\r\n\r\nvar value = JSON.stringify(data);\r\n\r\nxhr.send(value);\r\n\r\n{code}\r\n\r\nHope this helps.", "updateAuthor": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2015-11-23T10:13:37.000+0000", "updated": "2015-11-23T10:13:37.000+0000" }, { "id": "371144", "author": { "name": "patrickr", "key": "patrickr", "displayName": "Patrick Reichardt", "active": true, "timeZone": "Europe/Berlin" }, "body": "@morahman yes, sending data as a string works - thank you for the hint!", "updateAuthor": { "name": "patrickr", "key": "patrickr", "displayName": "Patrick Reichardt", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-23T12:36:15.000+0000", "updated": "2015-11-23T12:36:15.000+0000" }, { "id": "452648", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing. Support provided fix suggestion.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-13T21:41:54.000+0000", "updated": "2019-11-13T21:41:54.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }