title: Return json array from classic asp
body: <p>I am returning html from classic asp. Here is my code :-</p>
  
  <pre class="lang-vb prettyprint-override"><code>&lt;% ListFolderContents(Server.MapPath("/userfiles")) %&gt;
  &lt;% sub ListFolderContents(path)
  
   dim fs, folder, file, item, url
  
   set fs = CreateObject("Scripting.FileSystemObject")
   set folder = fs.GetFolder(path)
   Response.Write("&lt;h2&gt;"&amp; folder.Name &amp;"&lt;/h2&gt;")
   for each item in folder.SubFolders
              ListFolderContents(item.Path)
   next
   Response.Write("&lt;ul&gt;")
   for each item in folder.Files
  
      Response.Write("&lt;li&gt;&lt;a&gt;" &amp; item.Name &amp; "&lt;/a&gt;&lt;/li&gt;")
   next
      Response.Write("&lt;/ul&gt;")
   end sub
  %&gt;
  </code></pre>
  
  <p>But i want to return json array.I am new ,can anyone please guide me with any link or with any example.</p>
  
  <p>Thanks for your help.</p>