{ "id": "90825", "key": "TIMOB-8911", "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-10T18:06:22.000+0000", "created": "2012-04-24T15:24:36.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "community", "core" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": null, "updated": "2020-01-10T18:06:22.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": "When parsing objects with certain decimal values the resulting value is wrong.\r\n\r\n{code:java}\r\nvar test = JSON.parse('{\"Rating\":8.2}');\r\nTi.API.info(test.Rating); //Yields 8.199999999999999\r\n{code}\r\n\r\nThe above code gives the correct value on Android.", "attachment": [], "flagged": false, "summary": "iOS: JSON.parse decimal expansion ", "creator": { "name": "svickers", "key": "svickers", "displayName": "scott vickers", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "svickers", "key": "svickers", "displayName": "scott vickers", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS version 5.0\r\nTitanium SDK: 2.0.1 GA2", "comment": { "comments": [ { "id": "247742", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \niOS iPhone Simulator: iOS SDK version: 6.0\nAndroid Emulator: Android SDK version: 2.2 ", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-16T12:41:12.000+0000", "updated": "2013-04-16T12:41:12.000+0000" }, { "id": "453651", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "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. \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-10T18:06:22.000+0000", "updated": "2020-01-10T18:06:22.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }