{"action":"created","issue":{"url":"https://api.github.com/repos/NSwag/NSwag/issues/62","repository_url":"https://api.github.com/repos/NSwag/NSwag","labels_url":"https://api.github.com/repos/NSwag/NSwag/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/NSwag/NSwag/issues/62/comments","events_url":"https://api.github.com/repos/NSwag/NSwag/issues/62/events","html_url":"https://github.com/NSwag/NSwag/issues/62","id":149739551,"number":62,"title":"TypeScript: Improve date time handling in clients","user":{"login":"rsuter","id":2603405,"avatar_url":"https://avatars.githubusercontent.com/u/2603405?v=3","gravatar_id":"","url":"https://api.github.com/users/rsuter","html_url":"https://github.com/rsuter","followers_url":"https://api.github.com/users/rsuter/followers","following_url":"https://api.github.com/users/rsuter/following{/other_user}","gists_url":"https://api.github.com/users/rsuter/gists{/gist_id}","starred_url":"https://api.github.com/users/rsuter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsuter/subscriptions","organizations_url":"https://api.github.com/users/rsuter/orgs","repos_url":"https://api.github.com/users/rsuter/repos","events_url":"https://api.github.com/users/rsuter/events{/privacy}","received_events_url":"https://api.github.com/users/rsuter/received_events","type":"User","site_admin":false},"labels":[{"id":255705720,"url":"https://api.github.com/repos/NSwag/NSwag/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-04-20T11:20:31Z","updated_at":"2016-11-02T16:12:09Z","closed_at":"2016-05-01T20:13:43Z","body":"1. Support `\"\\/Date(1198908717056)\\/\"` by replacing all matches with `new Date(...)`: http://weblogs.asp.net/bleroy/dates-and-json\n2. Support ISO date time format by converting string values to  Date  (only possible with TS classes): \n   Must be fixed in NJsonSchema: https://github.com/NJsonSchema/NJsonSchema/issues/55\n3. Add optional reviver function to `JSON.parse(text[, reviver])`: \n   https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse\n\n```\nvar text = response.text();\nvar data = JSON.parse(text, this.reviver);\n```\n\nDate/time revivier function: http://stackoverflow.com/questions/1792865/how-to-use-json-parse-reviver-parameter-to-parse-date-string\n\nThe default reviver function should implement 1. from this list...\n"},"comment":{"url":"https://api.github.com/repos/NSwag/NSwag/issues/comments/257913771","html_url":"https://github.com/NSwag/NSwag/issues/62#issuecomment-257913771","issue_url":"https://api.github.com/repos/NSwag/NSwag/issues/62","id":257913771,"user":{"login":"rsuter","id":2603405,"avatar_url":"https://avatars.githubusercontent.com/u/2603405?v=3","gravatar_id":"","url":"https://api.github.com/users/rsuter","html_url":"https://github.com/rsuter","followers_url":"https://api.github.com/users/rsuter/followers","following_url":"https://api.github.com/users/rsuter/following{/other_user}","gists_url":"https://api.github.com/users/rsuter/gists{/gist_id}","starred_url":"https://api.github.com/users/rsuter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsuter/subscriptions","organizations_url":"https://api.github.com/users/rsuter/orgs","repos_url":"https://api.github.com/users/rsuter/repos","events_url":"https://api.github.com/users/rsuter/events{/privacy}","received_events_url":"https://api.github.com/users/rsuter/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T16:12:09Z","updated_at":"2016-11-02T16:12:09Z","body":"Removed jsonParseReviver from ctor, use extension class to modify reviver: see https://github.com/NSwag/NSwag/wiki/SwaggerToTypeScriptClientGenerator#add-a-custom-jsonparse-reviver-function"}}
{"actor":{"display_login":"rsuter"}}