title: Accessing Nested Objects in Json
body: <p>I have a custom object which contains other items (ie arrays, strings, other types of objects).</p>
  
  <p>I am not sure how to traverse the object to iterate and list all of the object types, keys, and values of the nested items.</p>
  
  <p>Second to this issue I don't know how many levels of nesting there are (as the object is generated dynamically from the back-end and passed to me as one object).</p>
  
  <p>Any ideas (and should I just use javascript/jQuery or both to do this most efficiently)?</p>
  
  <hr>
  
  <p>Thanks I'll give the code a go. I am retrieving a result set from a webservice which returns a different set of columns (of differing datatypes) and rows each time. I don't know the names of the columns which is why I am trying to get the data however I can.</p>
  
  <p>Depending on the datatype I will perform a different action (sum the amount, format it etc).</p>