Add dataType option. Add process_post.php to respond to types json and xml.