問題描述
我繼承了一些經典的 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 有一個創(chuàng)造性的想法,即在服務器端使用 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 庫的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!