My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Samples  
Self Primitive Datatypes.
Phase-Implementation, Featured
Updated Nov 12, 2009 by tugrulto...@gmail.com

Self Primitive Datatypes

numbers

<!--#include file="JSON_latest.asp"-->
<%
Response.Write toJSON(1989)
%>

strings

<!--#include file="JSON_latest.asp"-->
<%
Response.Write toJSON("やあ")
%>

date & times

<!--#include file="JSON_latest.asp"-->
<%
Response.Write toJSON(Now())
%>

single dimension arrays

<!--#include file="JSON_latest.asp"-->
<%
Response.Write toJSON(Array("a","l","i"))
%>

multi dimension arrays

<!--#include file="JSON_latest.asp"-->
<%
Dim x(1,1,1)
x(0,0,0) = "threedot"
x(0,0,1) = 2

Set x(0,1,0) = jsObject()
x(0,1,0)("nickname") = "threedot"
x(0,1,0)("age") = 19

x(0,1,1) = 6
x(1,0,0) = Array(Date(), 19, "threedot", True)
x(1,0,1) = False
x(1,1,0) = 10
x(1,1,1) = "やあ"

Response.Write toJSON(x)
%>
Comment by paul_lau...@yahoo.com, Aug 13, 2009

above you said that json2 would have a json to asp object but I cannot see one in version 2.0.2?

Is it there? Is there an example of using it?

Comment by modo...@gmail.com, Apr 27, 2010

Thanks for this library! Is really fantastic!

Good Work!

Comment by boue...@gmail.com, Dec 8, 2010

Thank you for your library. You saved my day !

Comment by vinious...@gmail.com, Aug 3, 2011

thanks ,but can you make a json object to jsobject?

Comment by chris.ti...@gmail.com, Sep 20, 2011

json object to jsobject? JSON is a JS Object. Set your json string to a variable and you have a collection of objects easily manipulated...

Comment by nguyenva...@gmail.com, May 20, 2013

dfsf


Sign in to add a comment
Powered by Google Project Hosting