[Haskell-cafe] Aeson + MongoDB, how to effortlessly store and retrieve json?

Niklas Hambüchen mail at nh2.me
Tue Feb 19 01:32:11 CET 2013


Not sure if this is helpful, but have a look at "aesonbson":

https://github.com/nh2/aesonbson/blob/master/Data/AesonBson.hs

It can convert aeson to bson and the other way around, so you can easily
convert 'Object's to 'Document's.

Is that what you are looking for?

On 18/02/13 21:37, Alfredo Di Napoli wrote:
> My question is simple: is it possible to "automagically" store the
> haskell data structure produced from the aeson encoding using
> 
> http://hackage.haskell.org/packages/archive/mongoDB/1.3.2/doc/html/Database-MongoDB-Query.html#g:7



More information about the Haskell-Cafe mailing list