{ "id": "171861", "key": "TIMOB-26169", "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": null, "resolutiondate": null, "created": "2018-06-29T15:50:09.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "engSchedule", "parity" ], "versions": [ { "id": "20102", "name": "Release 7.1.1", "archived": false, "released": true, "releaseDate": "2018-05-02" }, { "id": "20099", "name": "Release 7.2.0", "archived": false, "released": true, "releaseDate": "2018-06-14" } ], "issuelinks": [], "assignee": null, "updated": "2019-04-09T15:38:40.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h5.Description\r\n\r\nWhen requiring a JSON file on iOS the JSON object returned always contains two additional fields id and uri, where id if the filename and uri is the path relative to the Resources directory. This fields are enumerable, so when logging the file or doing Object.keys they are shown. \r\n\r\nIf these fields are defined in the file (either as exports or keys in the JSON) then they are also clobbered and the internal properties are set. \r\n\r\nI imagine the code needs to be changed to be similar to the Android code where the object holds keys for exports, id, and uri and return only the exports value to the js code while keeping uri and id for internal usage\r\n\r\nh5.Steps to reproduce\r\n\r\n# Grab the code from and add the files to an existing project https://gist.github.com/ewanharris/b17da3b1bb0e8eafc6f8668db9ec3505\r\n\r\nh5.Actual\r\n\r\nid and uri values are not set to the expected values\r\n\r\nh5.Expected\r\n\r\nid and uri values should not be overriden", "attachment": [], "flagged": false, "summary": "iOS: requiring file adds uri and id properties which are enumerable and clobber existing values", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "SDK: 7.1.1.GA, 7.2.0.GA", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }