title: Converting objects to JSON in VBA
body: <p>I know it's possible to use a library like VBAJSON to convert an array or a dictionary to json, but not a custom class instance in office 2013.</p>
  <p>Searching turns up no libraries for handling objects to json, so I figure there must be some other way.</p>
  <p>So, I'm wondering:</p>
  <ul>
  <li><p>is it possible for an object to be recursively converted to a dictionary so the to-json conversion can then happen, without having to write a lengthy custom &quot;ToDictionary&quot; method for each class?</p>
  </li>
  <li><p>is there another way (other than not using objects) that json output can be reached from custom class objects?</p>
  <p>At the moment, I've written ToDictionary methods for each class to output the instance as a dictionary. It's messy, but gets the job done.</p>
  </li>
  </ul>