{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:hackage/json-alt","name":"json-alt","description":"Parsing JSON with Aeson often requires decoding fields\nthat have more than one Haskell type.\n\nSo we have:\n```\ndata a :|: b = AltLeft a\n| AltLeft b\nprintIt = print . (fromJSON :: ByteString -\u003e Int :|: Bool)\nmain = do\nprintIt \"1\"    -- AltLeft 1\nprintIt \"true\" -- AltRight True\nprintIt \"null\" -- errors!\n```\nTo generate types for larger JSON documents,\nyou might use `json-autotype`.\n\nThis is separate package so that users\ndo not have to keep `json-autotype` as runtime\ndependency.\n\nSee https://github.com/mgajda/json-autotype","version":"1.0.0","softwareVersion":"1.0.0","license":"https://spdx.org/licenses/BSD-3-Clause","codeRepository":"https://github.com/mgajda/json-autotype","issueTracker":"https://github.com/migamake/json-autotype/issues","url":"https://github.com/mgajda/json-autotype","keywords":["bsd3","data","library","tools","Propose Tags"],"programmingLanguage":{"@type":"ComputerLanguage","name":"Haskell"},"maintainer":[{"@type":"Person","name":"MichalGajda"}],"author":[{"@type":"Person","name":"MichalGajda"}],"copyrightHolder":[{"@type":"Person","name":"MichalGajda"}],"dateCreated":"2018-11-28","dateModified":"2018-11-28","datePublished":"2018-11-28","copyrightYear":2018,"downloadUrl":"https://hackage.haskell.org/package/json-alt-1.0.0/json-alt-1.0.0.tar.gz","applicationCategory":"hackage","runtimePlatform":"hackage","developmentStatus":"active","sameAs":["https://hackage.haskell.org/package/json-alt"],"https://www.w3.org/ns/activitystreams#likes":150,"https://forgefed.org/ns#forks":22}