Added handling of generic type json response