Remove the use of `Data.Aeson.Generic` and use GHC Generics instead.

To get rid of the warnings from `aeson` about `Data.Aeson.Generic` being deprecated.