问题描述
我继承了一些经典的 ASP 代码,我需要一个可以实例化并在服务器端运行的 JSON 库,以便与 JavaScript 编码的服务器端 ASP 一起使用.
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.
我该怎么做?
推荐答案
对于编写/输出 JSON,我相信 aspjson 项目是一个不错的选择.在此处讨论在 ASP经典"中解析 JSON:
For writing/outputting JSON i believe the aspjson project is a pretty good choice. Parsing JSON in ASP "classic" is discussed here:
- 在经典 ASP 中解析 JSON 有什么好的库吗?
在该线程中,Chris Nielsen 有一个创造性的想法,即在服务器端使用 Javascript 库(因为 ASP 支持 JScript 和 VBScript).我没有尝试过,但也许这可以解决解析和写入.
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.
这篇关于经典 ASP 服务器端 JSON 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!