{ "id": "94350", "key": "TIMOB-9943", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "2012-07-03T07:35:44.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "community" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:30.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": "Ti.App.Properties has a listProperties() method that returns an array of (string) property names. However, there is no way to know the data type (boolean, double, int, list, object, string) of each property. Therefore, code cannot determine which getXxxxx method to call to obtain a given property's native value.\r\n\r\nPlease add a method to return all properties, their types, and values, as a JSON string, or alternately as an array of objects (where each object has PropertyName, PropertyType, and PropertyValue properties). Perhaps this new method could be called toJSON().\r\n\r\nExample:\r\n[{ PropertyName:\"FirstProp\", PropertyType:\"string\", PropertyValue:\"Hello World\" },\r\n { PropertyName:\"AnotherProp\", PropertyType:\"boolean\", PropertyValue:true},\r\n { PropertyName:\"SomeNumber\", PropertyType:\"int\", PropertyValue:42 },\r\n { PropertyName:\"MoneyAmt\", PropertyType:\"double\", PropertyValue:123.45 }]\r\n", "attachment": [], "flagged": false, "summary": "TiAPI: please add a method to return all properties, their types, and values, as a JSON string", "creator": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "environment": "- Mobile SDK 2.1.0\r\n- Android & iOS", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }