buffer-builder-aeson: Serialize Aeson values with Data.BufferBuilder
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
Downloads
- buffer-builder-aeson-0.2.0.3.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.0.1, 0.2.0.0, 0.2.0.3, 0.2.0.4, 0.2.0.5 |
|---|---|
| Dependencies | aeson, base (>=4.6 && <4.8), buffer-builder (>=0.2.0.3), bytestring, integer-gmp, scientific, unordered-containers, vector [details] |
| License | MIT |
| Author | Andy Friesen, Chad Austin |
| Maintainer | andy.friesen@gmail.com |
| Uploaded | by afriesen at 2015-02-23T05:17:05Z |
| Category | Data |
| Source repo | this: git clone https://github.com/andyfriesen/buffer-builder-aeson(tag 0.2.0.3) |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 3390 total (16 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs available [build log] Last success reported on 2015-02-23 [all 1 reports] |