Better generics on JSon classes