Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 100 lines (90 sloc) 2.511 kb
924ea54 @bos Initial commit
authored
1 name: aeson
35b4971 @bos Get rid of MonadPlus nonsense, revert version bump, add Monoid instances
authored
2 version: 0.1.0.2
924ea54 @bos Initial commit
authored
3 license: BSD3
4 license-file: LICENSE
5 category: Text, Web, JSON
6 copyright: Copyright 2011 MailRank, Inc.
7 author: Bryan O'Sullivan <bos@mailrank.com>
8 maintainer: Bryan O'Sullivan <bos@mailrank.com>
9 stability: experimental
10 tested-with: GHC == 6.12.3
11 synopsis: Fast JSON parsing and generation
12 cabal-version: >= 1.8
13 homepage: http://github.com/mailrank/aeson
14 bug-reports: http://github.com/mailrank/aeson/issues
15 build-type: Simple
16 description:
e3982d3 @bos More docs
authored
17 A JSON parsing and generation library optimized for ease of use
18 and high performance.
19 .
20 Parsing performance with GHC 6.12.3 on a late 2010 MacBook Pro
cb78de0 @bos Update benchmark results
authored
21 (2.66GHz Core i7), for mostly-English tweets from Twitter's JSON
22 search API:
e3982d3 @bos More docs
authored
23 .
cb78de0 @bos Update benchmark results
authored
24 * 854 bytes: 21054 msg\/sec (17.1 MB/sec)
e3982d3 @bos More docs
authored
25 .
cb78de0 @bos Update benchmark results
authored
26 * 6.4 KB: 4545 msg\/sec (28.6 MB/sec)
e3982d3 @bos More docs
authored
27 .
cb78de0 @bos Update benchmark results
authored
28 * 31.2 KB: 856 msg\/sec (26.1 MB/sec)
e3982d3 @bos More docs
authored
29 .
cb78de0 @bos Update benchmark results
authored
30 * 61.5 KB: 403 msg\/sec (24.2 MB/sec)
31 .
32 Handling heavily-escaped text is a little more work. Here is
33 parsing performance with Japanese tweets, where much of the text
34 is entirely Unicode-escaped:
35 .
36 * 14.6 KB: 1250 msg\/sec (17.9 MB/sec)
37 .
38 * 44.1 KB: 363 msg\/sec (15.6 MB/sec)
e3982d3 @bos More docs
authored
39 .
40 Encoding performance on the same machine and data:
41 .
0e1e37b @bos Correct a numeric error.
authored
42 * 854 bytes: 10647 msg\/sec (8.7 MB/sec)
e3982d3 @bos More docs
authored
43 .
44 * 6.4 KB: 2098 msg\/sec (13.2 MB/sec)
45 .
46 * 31.2 KB: 422 msg\/sec (12.9 MB/sec)
47 .
48 * 61.5 KB: 219 msg\/sec (13.2 MB/sec)
49 .
50 (A note on naming: in Greek mythology, Aeson was the father of Jason.)
51
924ea54 @bos Initial commit
authored
52 extra-source-files:
53 README.markdown
3568e5e @bos More benchmarkery: try out the json library.
authored
54 benchmarks/AesonParse.hs
55 benchmarks/EncodeFile.hs
56 benchmarks/JsonParse.hs
57 benchmarks/ReadFile.hs
924ea54 @bos Initial commit
authored
58
59 flag developer
60 description: operate in developer mode
61 default: False
62
63 library
64 exposed-modules:
65 Data.Aeson
00dd59d @bos Support JSON encoding
authored
66 Data.Aeson.Encode
a1ee5a5 @bos Partially implement generic JSON support.
authored
67 Data.Aeson.Generic
924ea54 @bos Initial commit
authored
68 Data.Aeson.Parser
69 Data.Aeson.Types
70
a1ee5a5 @bos Partially implement generic JSON support.
authored
71 other-modules:
72 Data.Aeson.Functions
73
924ea54 @bos Initial commit
authored
74 build-depends:
75 attoparsec >= 0.8.4.0,
76 base == 4.*,
00dd59d @bos Support JSON encoding
authored
77 blaze-builder >= 0.2.1.4,
924ea54 @bos Initial commit
authored
78 bytestring,
e3982d3 @bos More docs
authored
79 containers,
4b9b9e0 @bos Add an NFData instance for Value
authored
80 deepseq,
924ea54 @bos Initial commit
authored
81 old-locale,
a1ee5a5 @bos Partially implement generic JSON support.
authored
82 syb,
d05091c @bos Make developer flag control -auto-all.
authored
83 text >= 0.11.0.2,
924ea54 @bos Initial commit
authored
84 time,
85 vector >= 0.7
86
87 if flag(developer)
88 ghc-options: -Werror
d05091c @bos Make developer flag control -auto-all.
authored
89 ghc-prof-options: -auto-all
924ea54 @bos Initial commit
authored
90
91 ghc-options: -Wall
92
93 source-repository head
94 type: git
95 location: http://github.com/mailrank/aeson
3568e5e @bos More benchmarkery: try out the json library.
authored
96
97 source-repository head
98 type: mercurial
99 location: http://bitbucket.org/bos/aeson
Something went wrong with that request. Please try again.