fixed json return for appointments