add JSON response method