title: ASP Classic: Iterating a json2.js object
body: <p>I am getting a JSON result in ASP Classic like this:</p>
  
  <pre><code>&lt;script language="JScript" runat="server" src="json2.js"&gt;&lt;/script&gt;
  &lt;%
  Response.ContentType = "text/html"
  
  Dim HttpReq
  Dim Diamond
  Set HttpReq = Server.CreateObject("Msxml2.ServerXMLHTTP.6.0")
  HttpReq.open "GET", "http://url.com?id=" &amp; Request.QueryString("id"), False
  HttpReq.send
  
  res = HttpReq.responseText
  Set res = JSON.parse(res)
  %&gt;
  </code></pre>
  
  <p><strong>It works.</strong></p>
  
  <p>Let's say the JSON result will look like this:</p>
  
  <pre><code>res = {
      gallery: { 
          image1: { img: 'source url', thumb: 'source url' },
          image2: { img: 'source url', thumb: 'source url' },
          image3: { img: 'source url', thumb: 'source url' }
      },
      another_param1: 'foo',
      another param2: 'bar',
      ...
  }
  </code></pre>
  
  <p><strong>I want to then iterate the gallery object, not in JScript, but in VBScript.</strong></p>
  
  <p>How can I do that?</p>
  
  <p>Thank you very much in advance.</p>