Use TemplateHaskell to derive FromJSON instance