{"action":"created","issue":{"url":"https://api.github.com/repos/tc39/proposal-bigint/issues/24","repository_url":"https://api.github.com/repos/tc39/proposal-bigint","labels_url":"https://api.github.com/repos/tc39/proposal-bigint/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/tc39/proposal-bigint/issues/24/comments","events_url":"https://api.github.com/repos/tc39/proposal-bigint/issues/24/events","html_url":"https://github.com/tc39/proposal-bigint/issues/24","id":215149152,"number":24,"title":"Support JSON serialisation of BigInt values","user":{"login":"claudepache","id":3309637,"avatar_url":"https://avatars2.githubusercontent.com/u/3309637?v=4","gravatar_id":"","url":"https://api.github.com/users/claudepache","html_url":"https://github.com/claudepache","followers_url":"https://api.github.com/users/claudepache/followers","following_url":"https://api.github.com/users/claudepache/following{/other_user}","gists_url":"https://api.github.com/users/claudepache/gists{/gist_id}","starred_url":"https://api.github.com/users/claudepache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudepache/subscriptions","organizations_url":"https://api.github.com/users/claudepache/orgs","repos_url":"https://api.github.com/users/claudepache/repos","events_url":"https://api.github.com/users/claudepache/events{/privacy}","received_events_url":"https://api.github.com/users/claudepache/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":48,"created_at":"2017-03-17T23:56:45Z","updated_at":"2018-05-27T06:13:50Z","closed_at":"2017-05-25T16:16:35Z","author_association":"NONE","body":"The abstract operation [SerializeJSONProperty](https://tc39.github.io/ecma262/#sec-serializejsonproperty) needs to be patched, so that `JSON.stringify(1n)` returns `\"1\"` instead of `undefined`:\r\n\r\n* If Type(_value_) is Integer, then return a string representing _value_, without any suffix.\r\n\r\nI don’t think there is anything to do for `JSON.parse`, though."},"comment":{"url":"https://api.github.com/repos/tc39/proposal-bigint/issues/comments/392307848","html_url":"https://github.com/tc39/proposal-bigint/issues/24#issuecomment-392307848","issue_url":"https://api.github.com/repos/tc39/proposal-bigint/issues/24","id":392307848,"user":{"login":"d3x0r","id":1909610,"avatar_url":"https://avatars1.githubusercontent.com/u/1909610?v=4","gravatar_id":"","url":"https://api.github.com/users/d3x0r","html_url":"https://github.com/d3x0r","followers_url":"https://api.github.com/users/d3x0r/followers","following_url":"https://api.github.com/users/d3x0r/following{/other_user}","gists_url":"https://api.github.com/users/d3x0r/gists{/gist_id}","starred_url":"https://api.github.com/users/d3x0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3x0r/subscriptions","organizations_url":"https://api.github.com/users/d3x0r/orgs","repos_url":"https://api.github.com/users/d3x0r/repos","events_url":"https://api.github.com/users/d3x0r/events{/privacy}","received_events_url":"https://api.github.com/users/d3x0r/received_events","type":"User","site_admin":false},"created_at":"2018-05-27T06:13:50Z","updated_at":"2018-05-27T06:13:50Z","author_association":"NONE","body":"So, as I understand, a BigInt is created with an 'n' suffix as in 1n ?  \r\nBigInt has a unique Typeof() ? or is it 'Number' if so, that's no good, since big ints are not intending to be anything other than numbers, it should of course be its own type.\r\n\r\nSerializing such a number doesn't seem like a huge leap to say \"add an 'n' suffix\".  \r\n\r\nAnd then don't worry about comparisons in ranges of other things or not...\r\nhttps://github.com/tc39/proposal-bigint\r\n\r\nwhich sort of makes one dependant on the other I guess...\r\nfrom a C/C++ JSON parsing point of view, parsing an 'n' suffix is a no brainer.... it can be caught as an exception in if not whitespace; and or be another case with 'e' or 'E' since they're ints you can't have 'e' with 'n' I suppose.\r\nAnd then link to a bigint library :)"}}
{"actor":{"display_login":"d3x0r"}}