| Start |
|---|
| Smart Encoding and Decoding using Generics The easiest and quickest way to encode a Haskell data type to JSON with Aeson is using generics. First let us create a data type Person: In order to use the Done! In order to improve the encoding speed we can slightly change the Now we can use the And to decode we can just use |
A quick way to generate a Data.Aeson.Value |
| Optional Fields Sometimes, we want some fields in the JSON string to be optional. For example, This can be achieved by |
Read Article
https://develop.horje.com/learn/1434/reference