buffer-builder-aeson: Serialize Aeson values with Data.BufferBuilder

[ data, library, mit ] [ Propose Tags ]

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
Versions [RSS] [faq],,,
Dependencies aeson, base (==4.*), buffer-builder (>=, bytestring, integer-gmp, scientific, unordered-containers, vector [details]
License MIT
Author Andy Friesen
Maintainer andy.friesen@gmail.com
Revised Revision 1 made by afriesen at 2015-11-02T22:16:28Z
Category Data
Source repo this: git clone https://github.com/andyfriesen/buffer-builder-aeson(tag
Uploaded by afriesen at 2015-11-02T22:13:26Z
Distributions NixOS:
Downloads 2779 total (21 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2015-12-10 [all 3 reports]




Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees