-{if $action eq 2 or $action eq 4 } {* Update or View*}
+{if ($action eq 2 or $action eq 4) and $snippet neq 'json' } {* Update or View*}
<div class="action-link">
<a href="{crmURL p='civicrm/admin/uf/group/field' q="action=browse&reset=1&gid=$gid"}" class="button"><span>{ts}View or Edit Fields for this Profile{/ts}</a></span>