{"action":"created","issue":{"url":"https://api.github.com/repos/bloomberg/bucklescript/issues/1445","repository_url":"https://api.github.com/repos/bloomberg/bucklescript","labels_url":"https://api.github.com/repos/bloomberg/bucklescript/issues/1445/labels{/name}","comments_url":"https://api.github.com/repos/bloomberg/bucklescript/issues/1445/comments","events_url":"https://api.github.com/repos/bloomberg/bucklescript/issues/1445/events","html_url":"https://github.com/bloomberg/bucklescript/pull/1445","id":216985845,"number":1445,"title":"Refurbishes Js.Json","user":{"login":"glennsl","id":5207036,"avatar_url":"https://avatars0.githubusercontent.com/u/5207036?v=3","gravatar_id":"","url":"https://api.github.com/users/glennsl","html_url":"https://github.com/glennsl","followers_url":"https://api.github.com/users/glennsl/followers","following_url":"https://api.github.com/users/glennsl/following{/other_user}","gists_url":"https://api.github.com/users/glennsl/gists{/gist_id}","starred_url":"https://api.github.com/users/glennsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennsl/subscriptions","organizations_url":"https://api.github.com/users/glennsl/orgs","repos_url":"https://api.github.com/users/glennsl/repos","events_url":"https://api.github.com/users/glennsl/events{/privacy}","received_events_url":"https://api.github.com/users/glennsl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-03-25T16:34:12Z","updated_at":"2017-03-26T17:11:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bloomberg/bucklescript/pulls/1445","html_url":"https://github.com/bloomberg/bucklescript/pull/1445","diff_url":"https://github.com/bloomberg/bucklescript/pull/1445.diff","patch_url":"https://github.com/bloomberg/bucklescript/pull/1445.patch"},"body":"- adds `Encode` submodule with encode-specific functions\r\n- deprecates encode functions in `Js.Json`\r\n- adds `Decode`submodule with decode-specific comibinator primitives\r\n- deprecates decode functions in `Js.Json`\r\n- renames `parse` to `unsafeParse` (breaking change)\r\n- adds safe `parse` function returning result\r\n- adds several new functions to `Js.Dict`\r\n- adds `isInteger` to `Js.Float`\r\n- adds lots of documentation and examples\r\n\r\nThe idea is that these primitives should provide a fairly stable base upon which third-party libraries can iterate and experiment. There may still be changes, but hopefully it will mostly be additions.\r\n\r\nA few open questions remain:\r\n- How to best implement `array_` and `dict` encoders\r\n- To be able to use the combinators to their full potential, there needs to be a good set of primitives that operate on the result type. Perhaps bundling an `Option` and `Result` module should be fast-tracked."},"comment":{"url":"https://api.github.com/repos/bloomberg/bucklescript/issues/comments/289299065","html_url":"https://github.com/bloomberg/bucklescript/pull/1445#issuecomment-289299065","issue_url":"https://api.github.com/repos/bloomberg/bucklescript/issues/1445","id":289299065,"user":{"login":"glennsl","id":5207036,"avatar_url":"https://avatars0.githubusercontent.com/u/5207036?v=3","gravatar_id":"","url":"https://api.github.com/users/glennsl","html_url":"https://github.com/glennsl","followers_url":"https://api.github.com/users/glennsl/followers","following_url":"https://api.github.com/users/glennsl/following{/other_user}","gists_url":"https://api.github.com/users/glennsl/gists{/gist_id}","starred_url":"https://api.github.com/users/glennsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennsl/subscriptions","organizations_url":"https://api.github.com/users/glennsl/orgs","repos_url":"https://api.github.com/users/glennsl/repos","events_url":"https://api.github.com/users/glennsl/events{/privacy}","received_events_url":"https://api.github.com/users/glennsl/received_events","type":"User","site_admin":false},"created_at":"2017-03-26T17:11:23Z","updated_at":"2017-03-26T17:11:23Z","body":"> but it makes a big difference from encodeBlabla?\r\n\r\nWhat do you mean? If it's aliased it should be identical in use: `Js.Json.Encode.foo`."}}
{"actor":{"display_login":"glennsl"}}