Serialize json and both clicks on appointment modal