title: reading an object's attributes and properties using recursion?
body: <p>I wonder if it would be possible for me to employ a recursive function to read all the attributes and properties of an object including the nested properties and such. for example,
  if I have an object:</p>
  
  <pre><code>  var mObj = {};
    mObj.countries = [];
    mObj.country = {};
    mObj.country.states = [];
    mObj.country.state = {};
    mObj.country.state = {};
  </code></pre>
  
  <p>I am sure you get the picture. If it was just a simple object then I can employ "for in" loop, and perhaps nested "for in" loop, an object has numerous nested levels then using nested "for in" loops becomes somewhat chaos. I thought it would wonderful to employ recursion. Any help insight to this would highly appreciated.</p>
  
  <p>Thank you.</p>