title: Java Serialization vs JSON vs XML
body: <p>I am wondering what serialized mechanism should we choose when dealing with object transferring over the network. What are the pros and cons ?</p>
  
  <p>I know most of the time we use <code>JSON</code> or <code>XML</code> for <code>AJAX</code> since the transfer format are pretty much <code>Javascript</code> format, and plus <code>JSON</code> is pretty lightweight with its small footprint, therefore is <code>Java</code> serialization totally out of the table ?</p>