In PHP, there is the function json_encode which does this.

In the code, it's a one-liner:

PHP Code: 
$encoded json_encode($myobj);  //Badabing!  And you're done. 
Is there a built-in equivalent in Excel VBA? Or do we have to do it manually?