The latest version of buffer-builder-aeson is 0.2.0.5-0.

buffer-builder-aeson

Version 0.2.0.4 revision 1 uploaded by afriesen.

Package meta

Synopsis
Serialize Aeson values with Data.BufferBuilder
Description

A very fast BufferBuilder-based JSON encoder for Aeson.

The whole library is a a single orphan instance for Aeson.Value.

import Data.Aeson (object, (.=), Value (..))
import Data.BufferBuilder.Json (encodeJson)
import Data.BufferBuilder.Aeson ()
import qualified Data.ByteString as BS

stuff :: Value
stuff = Array
    [ object
        [ "name" .= ("eggs" :: String)
        , "price" .= (3.141592 :: Double)
        ]
    , object
        [ "name" .= ("cheese" :: String)
        , "price" .= (0.57721 :: Double)
        ]
    ]

main :: IO ()
main = do
    BS.putStrLn $ encodeJson stuff
Author
Andy Friesen
Bug reports
n/a
Category
Data
Copyright
n/a
Homepage
n/a
Maintainer
andy.friesen@gmail.com
Package URL
n/a
Stability
n/a

Components