{ "id": "109241", "key": "ALOY-499", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15271", "description": "Alloy 1.1.0, concurrent with SDK 3.1.0", "name": "Alloy 1.1.0", "archived": false, "released": true, "releaseDate": "2013-04-16" }, { "id": "14872", "description": "2013 Sprint 03", "name": "2013 Sprint 03", "archived": true, "released": true, "releaseDate": "2013-02-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-02-06T21:32:08.000+0000", "created": "2013-02-06T00:10:28.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-05-01T14:56:27.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": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "h2. Bug\r\n\r\nIf there is a comma present at the end of an object and it's not needed then the generated code contains an extra property defined as:\r\n\"undefined\": undefined\r\n\r\nRemoving the comma resolves the issues.\r\n\r\nh2. Test case\r\n\r\nSample code: https://gist.github.com/ccavazos/edf7b43f7195fb9aa88d", "attachment": [], "flagged": false, "summary": "Generated code contains undefined objects when a comma not needed is present on tss files", "creator": { "name": "ccavazos", "key": "ccavazos", "displayName": "César Cavazos", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ccavazos", "key": "ccavazos", "displayName": "César Cavazos", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Application type: mobile\r\nTitanium SDK: 3.0.0.GA\r\nAlloy Version: 0.3.6\r\nPlatform & version: iOS 6.0\r\nDevice: --\r\nHost Operating System: OSX 10.8.2\r\nTitanium Studio: 3.0.1.201212181159", "comment": { "comments": [ { "id": "237498", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Additional note, this only seems to happen on nested object, like {{font}} or some of the complex styles listed in the sample.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-06T20:30:48.000+0000", "updated": "2013-02-06T20:30:48.000+0000" }, { "id": "237510", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Grammar updated and parser regenerated to eliminate the unnecessary undefined properties", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-06T21:32:08.000+0000", "updated": "2013-02-06T21:32:08.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }