The aeson package
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.)
Properties
| Versions | 0.1.0.0, 0.2.0.0, 0.3.0.0, 0.3.1.0, 0.3.1.1, 0.3.2.0, 0.3.2.1, 0.3.2.2, 0.3.2.3, 0.3.2.4, 0.3.2.5, 0.3.2.6, 0.3.2.7, 0.3.2.8, 0.3.2.9, 0.3.2.10, 0.3.2.11, 0.3.2.12, 0.3.2.13, 0.3.2.14, 0.4.0.0, 0.4.0.1, 0.5.0.0, 0.6.0.0, 0.6.0.1, 0.6.0.2, 0.6.1.0 |
|---|---|
| Dependencies | attoparsec (≥0.8.5.0), base (4.*), blaze-builder (≥0.2.1.4), bytestring, bytestring-show, containers, deepseq, hashable, monads-fd, old-locale, syb, text (≥0.11.0.2), time, unordered-containers (≥0.1.2.0), vector (≥0.7) |
| License | BSD3 |
| Copyright | Copyright 2011 MailRank, Inc. |
| Author | Bryan O'Sullivan <bos@mailrank.com> |
| Maintainer | Bryan O'Sullivan <bos@mailrank.com> |
| Stability | experimental |
| Category | Text, Web, JSON |
| Home page | http://github.com/mailrank/aeson |
| Bug tracker | http://github.com/mailrank/aeson/issues |
| Source repository | git clone http://github.com/mailrank/aeson |
| Upload date | Sat Mar 12 15:54:15 UTC 2011 |
| Uploaded by | BryanOSullivan |
| Built on | ghc-7.0 |
| Distributions | Fedora: 0.6.0.2, NixOS: 0.6.1.0, Debian: 0.6.1.0, FreeBSD: 0.6.1.0 |
Modules
Downloads
- aeson-0.3.1.0.tar.gz (Cabal source package)
- package description (included in the package)