added a demo for how to use ghc generated FromJSON instances for data types