i’m a beginner in Classic ASP and this is my first question in stackoverflow… i need to transform a query string, with a random number of parameters in json:
param1=hi¶m2=hello¶m3=byebye.... paramN=gudnight
in something like this:
{"param1":"hi","param2":"hello","param3":"byebye"...,"paramN":"gudnight"}
is there something to do this automatically in asp??
Here you go.
UPDATE: The json2.js file included is a json parser class but it is no longer at that location. We downloaded a copy of it which is on our servers and we currently use. You can find an up to date copy of it at the following url – https://github.com/douglascrockford/JSON-js.
So if I hit my test page with the following url –
I get the following JSON formatted response –