appointment submit, save and feedback. json encode