Source

aeson / Data / Aeson / Generic.hs

The default branch has multiple heads

Author Commit Message Labels Comments Date
Nikita Volkov
Fix the Maybe being treated as ADT in Generics bug
Bryan O'Sullivan
Update copyright years
Jared Hance
Fix #72. Sometimes, it appears, Nullary constructors can be encoded as Null as well as an empty array [not sure why one this!]. The Generic code, as of 49befcafc80a85b371a6e0e0d5ab4ad9b33d8778, fails when a Null is passed for a nullary constructor. Add in a pattern match to fix this issue.
basvandijk
Fixed #62. Nullary constructors are encoded as an empty array. The syb code wrongfully assumed they were encoded as Null.
Bryan O'Sullivan
Get rid of "_"-prefixed field name mangling. This fixes gh-53.
Bryan O'Sullivan
Update copyrights.
Bryan O'Sullivan
Clean up and document the stricter parsing functions.
Bryan O'Sullivan
Start working on release notes and expanded examples.
Bryan O'Sullivan
Fix compilation breakage
Bryan O'Sullivan
Merge
Bryan O'Sullivan
Merge pull request #41 from basvandijk/hashmap Use HashMap instead of Map for Objects
basvandijk
Use HashMap instead of Map for Objects This gives some nice speedups in the AesonCompareAutoInstances benchmarks: 24.7% speedup on average 98.0% maximum speedup -1.7% maximum slowdown
Bryan O'Sullivan
Update maintainer email address
Eduard Sergeev
Add handling of the leading '_' to 'fromJSON' So '_'-augmented fields can be not only serialized to JSON but also de-serialized without "field does not exist _Id"-like exception
Bryan O'Sullivan
Split Types/Internal.hs into 3 files.
basvandijk
Use the new GHC generics for the default toJSON and parseJSON implementations. The SYB code is moved back into Data.Aeson.Generics
Bryan O'Sullivan
Hide genericToJSON and genericFromJSON.
basvandijk
Default methods for toJSON and parseJSON using the new DefaultSignatures extension The methods default to the generic implementations. I had to move the generic implementations into the Types module and define and export genericToJSON and genericFromJSON. Other arrangements exists but this was the quickest to implement. Note that the default methods are only enabled when the extension is available. Currently this is the case for ghc >= 7.2.1.
Bryan O'Sullivan
Update docs
Bryan O'Sullivan
Merge
Gershom B
Parse HashMaps in the Generic module
Bryan O'Sullivan
Improve generic support for maps.
Bryan O'Sullivan
Add support for HashMap from the unordered-containers package.
Bryan O'Sullivan
Small cleanups to the generic code
Gershom B
Fix generic case for maps.
Bryan O'Sullivan
Switch numerics to use the Number type This is very nearly as fast as Doubles for parsing, and more accurate for dealing with integers.
Bryan O'Sullivan
Separate .NET and JavaScript date formats, per github issue 1
Bryan O'Sullivan
Simplify (and probably speed up) some code a little
Bryan O'Sullivan
Conversion to/from generic types via SYB, and new Parser/Result types We can now convert most types deriving Data. Also, change the parsing code from being based on Applicative to using an efficient continuation-based Parser type, with a Result type signalling the result.
Bryan O'Sullivan
Partially implement generic JSON support. Borrowed from the json package's implementation.