Once you're in PHP mode (i.e. reach the opening <?php tag), everything is read as code until you exit PHP mode (i.e. reach the closing ?> tag). So there's no need to reopen those tags when they've already been open. See the basic syntax section of the manual for more details about this.
One of PHP's best features is that it allows you to embed code in HTML, rather than having to embed HTML in code. It's actually much easier to read your code when you write it like this, for example...
<input type="submit" onclick="javascript:jqcc.cometchat.chatWith(<?= $jsonData[$i]; ?>);" value="Chat Now" class="success button small">
Notice we only use PHP to print the value of $jsonData[$i] where it's needed and everything else is just plain/text or HTML that gets printed.
Also, note I'm using the short-hand form of <?php echo which is just <?=.
To expand on this a little, one of the reasons this idea of embeding code in HTML is so useful, is that it allows you to easily and transparently separate code from data.
<?php
$loggedIn = is_user_logged_in();
if ($loggedIn) {
?>
<input type="submit" onclick="javascript:jqcc.cometchat.chatWith(<?= $jsonData[$i]; ?>);" value="Chat Now" class="success button small">
<?php
} else {
?>
<h1>ohnoes, you're not logged in :(</h1>
<?php
}
PHP within an Echo PHPin the title field and check the suggestions that the site suggests