title: How close is size of object in json form compared to in memory
body: <p>Suppose there is object <code>animal</code> of class Animal. I want to calculate size of object <code>animal</code> inside the memory. One way I can do is to use gson to convert object into JSON form and calculate the size of string. How close would be size of this string to real object ?</p>