{ "id": "126632", "key": "AC-2264", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-02-20T06:59:42.000+0000", "created": "2014-02-20T05:14:47.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [ { "id": "35287", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "126604", "key": "AC-2252", "fields": { "summary": "every file i copy to resources drectory is removed when debugging alloy project", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:16.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "I tried to load a json file which i have stored in \\app\\assets\\data.\r\ni tried reading it from the controller like this\r\n\r\nvar fileName = '/data/data.json';\r\n\r\nbut i get this error \"/data/data/com.isasgh.icgc.lwd/app_appdata/data/data.json: open failed: ENOENT (No such file or directory)\"", "attachment": [], "flagged": false, "summary": "file not found in assets folder", "creator": { "name": "jude2004gh@gmail.com", "key": "jude2004gh@gmail.com", "displayName": "Jude Addo", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jude2004gh@gmail.com", "key": "jude2004gh@gmail.com", "displayName": "Jude Addo", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK version 3.2.1.GA", "comment": { "comments": [ { "id": "293896", "author": { "name": "jude2004gh@gmail.com", "key": "jude2004gh@gmail.com", "displayName": "Jude Addo", "active": true, "timeZone": "America/Los_Angeles" }, "body": "this is full code\n\nvar fileName = '/data/data.json'; \nvar file = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory, fileName); \nvar json, object_name, id; \nvar preParseData = (file.read().text); \nvar response = JSON.parse(preParseData); \nvar idd = response.object_name[0].id;\nalert(idd);", "updateAuthor": { "name": "jude2004gh@gmail.com", "key": "jude2004gh@gmail.com", "displayName": "Jude Addo", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-20T05:17:50.000+0000", "updated": "2014-02-20T05:17:50.000+0000" }, { "id": "293905", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TC-3797.\r\n", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-20T06:59:42.000+0000", "updated": "2014-02-20T06:59:42.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }