{ "id": "63694", "key": "TIMOB-3062", "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": "2020-01-09T18:50:35.000+0000", "created": "2011-04-15T03:35:50.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-09T18:50:35.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

I am using Mobile SDK 1.5.1 and when I recieve JSON from my\nserver, I can see its in a particular order.
\nThese are reverse order timestamp posts from a phpBB forum.

\n

When I JSON.parse the response I get them in a different order\non both Android and iOS.
\nIf I run eval the results are in the correct original order.

\n

I can see with Ti.API.info that the app is getting the original\nJSON in the correct order.

\n

Heres how the JSON looks:

\n
\n{\n\"3\":{ \"isUnread\":\"\", \"title\":\"Games\", \"replies\":\"1987\", \"startedBy\":\"User\", \"lastPostTime\":\"Mon Oct 04, 2010 8:39 pm\", \"lastPostBy\":\"User\", \"lastPosterUID\":\"4\" },\n\"5\":{ \"isUnread\":\"\", \"title\":\"General\", \"replies\":\"2689\", \"startedBy\":\"User\", \"lastPostTime\":\"Mon Oct 04, 2010 8:38 pm\", \"lastPostBy\":\"User\", \"lastPosterUID\":\"4\" }, \n\"163\":{ \"isUnread\":\"\", \"title\":\"Europeland\", \"replies\":\"313\", \"startedBy\":\"User\", \"lastPostTime\":\"Mon Oct 04, 2010 8:00 pm\", \"lastPostBy\":\"User\", \"lastPosterUID\":\"2\" },\n\"END\":\"END\"\n}\n
{html}", "attachment": [], "flagged": false, "summary": "JSON.parse changes order of data", "creator": { "name": "madhavajay", "key": "madhavajay", "displayName": "Madhava Jay", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "madhavajay", "key": "madhavajay", "displayName": "Madhava Jay", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "157281", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "There is a HD ticket that encountered this issue on Android as well. \r\n\r\nhttp://support.appcelerator.com/display/APP-127543\r\n\r\nTargets:\r\n+ **Product**: Mobile \r\n+ **Titanium SDK**: Mobile 1.6.1 \r\n+ **Platform OS**: Android \r\n+ **Platform OS Version**: 2.3", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-06-21T10:36:27.000+0000", "updated": "2011-06-21T10:36:27.000+0000" }, { "id": "453543", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. Updating, or creating code may not reproduce the issue reported, or be a valid test case.\r\n\r\nIf community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-09T18:50:35.000+0000", "updated": "2020-01-09T18:50:35.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }