{"issue":{"created_at":"2011-11-03T05:46:36Z","state":"open","updated_at":"2011-12-12T22:17:28Z","user":{"gravatar_id":"23200fdd9185a3340f0365ee68c9deda","id":16249,"url":"https://api.github.com/users/seanhess","avatar_url":"https://secure.gravatar.com/avatar/23200fdd9185a3340f0365ee68c9deda?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"seanhess"},"comments":3,"body":"Hi, I'm new to haskell, so I have no idea whether this kind of code belongs in the BSON repo, the JSON repo, or something else, but I needed a way to serialize BSON to JSON. \r\n\r\nhttps://gist.github.com/1335856\r\n\r\nCan you use this? (Note that it's not quite done). If not, where does this kind of mapping between two separate libraries live in haskell-land? BSON and JSON are such close cousins that it seems like it should be easier. \r\n\r\nIs there a better way to do this?\r\n\r\nAlso note that it seems that most of the libraries use Text.Text now instead of CompactString, which made it annoying to convert between the two. \r\n\r\nThanks!","assignee":null,"id":2129574,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":8,"title":"Convert BSON to JSON","html_url":"https://github.com/TonyGen/mongoDB-haskell/issues/8","closed_at":null,"url":"https://api.github.com/repos/TonyGen/mongoDB-haskell/issues/8","milestone":null},"action":"created","comment":{"created_at":"2011-12-12T22:17:28Z","updated_at":"2011-12-12T22:17:28Z","user":{"gravatar_id":"23200fdd9185a3340f0365ee68c9deda","id":16249,"url":"https://api.github.com/users/seanhess","avatar_url":"https://secure.gravatar.com/avatar/23200fdd9185a3340f0365ee68c9deda?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"seanhess"},"body":"That is awesome. That's pretty much exactly what I should have done. Thanks\nOn Dec 9, 2011, at 2:13 PM, Greg Weber wrote:\n\n> you could see what happens if you use deriving Generic\n> \n> https://github.com/bos/aeson/blob/master/examples/Generic.hs\n> \n> --- \n> Reply to this email directly or view it on GitHub:\n> https://github.com/TonyGen/mongoDB-haskell/issues/8#issuecomment-3086010","id":3113919,"url":"https://api.github.com/repos/TonyGen/mongoDB-haskell/issues/comments/3113919"}}