Update Aeson to not use deprecated functions

Few modifications in order to not use deprecated functions from the Aeson library.