Enabled use of DeriveGenerics to cut down on ToJSON instance boilerplate