{ "id": "173437", "key": "TIMOB-26963", "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": [ { "id": "20884", "name": "Release 8.2.1", "archived": false, "released": true, "releaseDate": "2019-10-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-10-02T16:56:20.000+0000", "created": "2019-04-04T08:02:51.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" }, { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "issuelinks": [ { "id": "57845", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "155042", "key": "TIMOB-20487", "fields": { "summary": "Extra properties after requiring commonjs modules", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2019-10-02T16:56:20.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 using {{require()}} to load a JSON file on iOS, the filename and base-url are appended to the final JSON object.\r\n\r\nExample:\r\n{code:js}\r\nconst data = require('currencies.json');\r\nconsole.log(data);\r\n{code}\r\n\r\nWorkaround:\r\n{code:js}\r\nconst data = JSON.parse(Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'currencies.json').read());\r\n{code}", "attachment": [ { "id": "66540", "filename": "currencies.json", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-04-04T08:02:23.000+0000", "size": 17458, "mimeType": "application/json" } ], "flagged": false, "summary": "iOS: Require'ing a JSON file appends file path to resulting JSON string ", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Latest master", "comment": { "comments": [ { "id": "448758", "author": { "name": "iwhitfield", "key": "iwhitfield", "displayName": "Isaac Whitfield", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I filed a quick PR for this in https://github.com/appcelerator/titanium_mobile/pull/10929 - the fields seem old and are likely redundant. Everything worked in my test app, so I'd assume they're ok to be removed. ", "updateAuthor": { "name": "iwhitfield", "key": "iwhitfield", "displayName": "Isaac Whitfield", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-05-31T23:32:00.000+0000", "updated": "2019-05-31T23:32:00.000+0000" }, { "id": "451399", "author": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "updateAuthor": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2019-09-16T15:47:01.000+0000", "updated": "2019-09-16T15:47:01.000+0000" }, { "id": "451722", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "backport for 8_2_X: https://github.com/appcelerator/titanium_mobile/pull/11250", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-09-30T20:21:27.000+0000", "updated": "2019-09-30T20:21:27.000+0000" }, { "id": "451733", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nPR's Merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-30T23:00:20.000+0000", "updated": "2019-09-30T23:00:20.000+0000" }, { "id": "451771", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 8.2.1.v20191001063013 & 8.3.0.v20191001072347.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-02T16:56:15.000+0000", "updated": "2019-10-02T16:56:15.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }