개발/classic asp2014. 2. 12. 11:44
300x250



ㅁ JSON for ASP



aspjson 은 VBScript ASP 환경에서 JSON 구문 출력을 해 준다. 



aspjson is JSON serializer for VBScript based ASP server technology.

It uses VBScript's primitive types except Object and Array types. jsObject and jsArray classes stand JSON Object and Array dynamically on server side. These classes derive core functionality from jsCore.

aspjson supports nested types for block of buildings, such as jsObject instances can contain Numbers, Strings, Nulls, Arrays and other primitive types, jsArray instances can contain these jsObject instances or all of the primitive types.



Hello World!

sample

<!--#include file="JSON_latest.asp"-->
<%
Dim member
Set member = jsObject()

member
("name") = "Tuğrul"
member
("surname") = "Topuz"
member
("message") = "Hello World"

member
.Flush
%>

output

{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}


JSON_latest.asp  파일은 아래에서 받을 수 있다.

http://code.google.com/p/aspjson/downloads/detail?name=JSON_2.0.4.asp



* 출처 : http://code.google.com/p/aspjson/

300x250
Posted by 마스타