The buffer-builder-aeson package

[Tags:benchmark, library, mit, test]

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

Properties

Versions 0.1.0.1, 0.2.0.0, 0.2.0.3, 0.2.0.4
Dependencies aeson, base (==4.*), buffer-builder (>=0.2.0.0), bytestring, integer-gmp, scientific, unordered-containers, vector [details]
License MIT
Author Andy Friesen
Maintainer andy.friesen@gmail.com
Stability Unknown
Category Data
Source repository this: git clone https://github.com/andyfriesen/buffer-builder-aeson(tag 0.2.0.4)
Uploaded Mon Nov 2 22:13:26 UTC 2015 by afriesen
Updated Mon Nov 2 22:16:28 UTC 2015 by afriesen to revision 1
Distributions NixOS:0.2.0.4
Downloads 467 total (4 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2015-12-10 [all 3 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees