made response a json type