Improved ASP JSON utility

Most of the projects that I have been working on lately did not require any advanced AJAX. Most of the time, stuffing the results of a simple GET into innerHTML has usually been sufficient. Recently, I needed to do some more advanced AJAX work so I started looking into JSON. There a hundreds of helper classes that people have dreamed up already for ASP.NET, however this project was under the Classic ASP (VBScript) umbrella.

I fell upon a nice little utility on aptly called aspjson. It is a nice utility except the implementation of multi-dimensional array support is flawed. Try to JSON an array that has dimensions with more than 10 elements and you will quickly see what I mean.

I rewrote the multi-dimensional array support from scratch and I am releasing the code under the same license as the original author as well as obviously attributing credit to Tuğrul Topuz for his original code.

Download the ASPJSON 2.1 source

5 Comments

  1. DaniT says:

    jcarle rocks!!!!! :D

  2. DaniT says:

    You rock, really. My girlfriend agrees, you solved my problem and now I’m free for her 100% for the whooooole weekend :D

    By the way, there’s a reported issue with the 2.0.2 version (check it: http://code.google.com/p/aspjson/issues/detail?id=2), regarding to character encoding. This version you’ve developed misses that, I have checked it out.

    So people using JSON 2.1 might need to fix that as well.

    Cheers!

    DaniT

  3. [...] in July of this year, I released an improved version of Tuğrul Topuz’s aspjson utility. Based on some feedback of my release, I decided to revisit the slowly growing list of unfixed [...]

  4. Tuğrul Topuz says:

    Hello,

    I fixed some bug and performance issue. I’m haven’t so spare time for project.

  5. James says:

    Hey-

    great job on the JSOn project, it works great. Only question I have is how to force the callback propely to jquery so that it knows the data is ready? I added in the mime types to my server but that did not fully allow jquery to get a callback it was expecting. I am using IIS by the way if that is needed.

    Thanks for any help!
    James

Leave a Reply