aeson: Fast JSON parsing and generation
A JSON parsing and generation library optimized for ease of use and high performance.
Parsing performance with GHC 6.12.3 on a late 2010 MacBook Pro (2.66GHz Core i7), for mostly-English tweets from Twitter's JSON search API:
854 bytes: 21054 msg/sec (17.1 MB/sec)
6.4 KB: 4545 msg/sec (28.6 MB/sec)
31.2 KB: 856 msg/sec (26.1 MB/sec)
61.5 KB: 403 msg/sec (24.2 MB/sec)
Handling heavily-escaped text is a little more work. Here is parsing performance with Japanese tweets, where much of the text is entirely Unicode-escaped:
14.6 KB: 1250 msg/sec (17.9 MB/sec)
44.1 KB: 363 msg/sec (15.6 MB/sec)
Encoding performance on the same machine and data:
854 bytes: 10647 msg/sec (8.7 MB/sec)
6.4 KB: 2098 msg/sec (13.2 MB/sec)
31.2 KB: 422 msg/sec (12.9 MB/sec)
61.5 KB: 219 msg/sec (13.2 MB/sec)
(A note on naming: in Greek mythology, Aeson was the father of Jason.)
[Skip to Readme]
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
developer | operate in developer mode | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- aeson-0.3.1.1.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
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
Candidates