Update json encodings to the new aeson template haskell api