views:

330

answers:

2

I have inherited some classic asp code and I need a JSON library that can be instantiated and run server-side for use with JavaScript-coded server-side asp.

How can I do this?

+1  A: 

You could try something similar to this: http://www.lshift.net/blog/2005/10/11/simple-ajax-with-json-chat-application-for-asp-30

It has a fairly direct encapsulation of the old json.js into a json.asp file for running on the server-side.

Tony Garnock-Jones
+2  A: 

For writing/outputting JSON i believe the aspjson project is a pretty good choice. Parsing JSON in ASP "classic" is discussed here:

In that thread, Chris Nielsen has a creative idea of using a Javascript library on the server side (as ASP supports JScript as well as VBScript). I have not tried it, but maybe that could solve both parsing and writing.

Jørn Schou-Rode