{"action":"created","issue":{"url":"https://api.github.com/repos/purescript-contrib/purescript-argonaut-codecs/issues/22","repository_url":"https://api.github.com/repos/purescript-contrib/purescript-argonaut-codecs","labels_url":"https://api.github.com/repos/purescript-contrib/purescript-argonaut-codecs/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/purescript-contrib/purescript-argonaut-codecs/issues/22/comments","events_url":"https://api.github.com/repos/purescript-contrib/purescript-argonaut-codecs/issues/22/events","html_url":"https://github.com/purescript-contrib/purescript-argonaut-codecs/issues/22","id":190596662,"number":22,"title":"Encode/DecodeJson Maybe instances can't handle nested Maybes","user":{"login":"hdgarrood","id":1270186,"avatar_url":"https://avatars.githubusercontent.com/u/1270186?v=3","gravatar_id":"","url":"https://api.github.com/users/hdgarrood","html_url":"https://github.com/hdgarrood","followers_url":"https://api.github.com/users/hdgarrood/followers","following_url":"https://api.github.com/users/hdgarrood/following{/other_user}","gists_url":"https://api.github.com/users/hdgarrood/gists{/gist_id}","starred_url":"https://api.github.com/users/hdgarrood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hdgarrood/subscriptions","organizations_url":"https://api.github.com/users/hdgarrood/orgs","repos_url":"https://api.github.com/users/hdgarrood/repos","events_url":"https://api.github.com/users/hdgarrood/events{/privacy}","received_events_url":"https://api.github.com/users/hdgarrood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-21T00:44:32Z","updated_at":"2016-11-30T14:39:44Z","closed_at":null,"body":"For example:\r\n\r\n```purescript\r\nroundtrip :: forall a. (EncodeJson a, DecodeJson a) => a -> Either String a\r\nroundtrip x = decodeJson <<< encodeJson\r\n```\r\n\r\nThen `roundtrip (Just Nothing :: Maybe (Maybe Unit))` is `Right Nothing`."},"comment":{"url":"https://api.github.com/repos/purescript-contrib/purescript-argonaut-codecs/issues/comments/263889439","html_url":"https://github.com/purescript-contrib/purescript-argonaut-codecs/issues/22#issuecomment-263889439","issue_url":"https://api.github.com/repos/purescript-contrib/purescript-argonaut-codecs/issues/22","id":263889439,"user":{"login":"chris-kahn","id":16520875,"avatar_url":"https://avatars.githubusercontent.com/u/16520875?v=3","gravatar_id":"","url":"https://api.github.com/users/chris-kahn","html_url":"https://github.com/chris-kahn","followers_url":"https://api.github.com/users/chris-kahn/followers","following_url":"https://api.github.com/users/chris-kahn/following{/other_user}","gists_url":"https://api.github.com/users/chris-kahn/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-kahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-kahn/subscriptions","organizations_url":"https://api.github.com/users/chris-kahn/orgs","repos_url":"https://api.github.com/users/chris-kahn/repos","events_url":"https://api.github.com/users/chris-kahn/events{/privacy}","received_events_url":"https://api.github.com/users/chris-kahn/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T14:39:44Z","updated_at":"2016-11-30T14:39:44Z","body":"Sorry, my mistake, I meant to write `.:!` and not `.!=`. These operators are confusing sometimes.\r\n\r\n`.:!` is similar to `.:?` but it parses the value differently. They are both `FromJSON a => Object -> Text -> Parser (Maybe a)` but instead of interpreting `null` as `Nothing`, it interprets it like any other json value and tries to parse `null` into an `a`. This combinator should give you `Right (Just Nothing)` in your `roundtrip`."}}
{"actor":{"display_login":"chris-kahn"}}