$json = <<travelDate; break; case JSON_ERROR_SYNTAX: echo 'Incorrect json : Please check your json syntax'; break; case JSON_ERROR_CTRL_CHAR: echo 'Control character error'; break; case JSON_ERROR_DEPTH: echo 'The json string has exceeded maximum allowed stack depth'; break;}