I am debugging this ajax for quite a time now. I have this on my jQUery file:
$(\"#typeForm\").ajaxForm({ success : function(html){ alert(html);
You should call only prompt object of your array not all! like below:
prompt
$("#typeForm").ajaxForm({ success : function(html){ var obj = $.parseJSON(html); alert(obj.prompt); }).submit();