put FromJSON instances after type definitions