Made JSON response more generic.