update and fix jsonAnswer.php