开发者

Using javascript json class with ASP

开发者 https://www.devze.com 2023-01-24 15:33 出处:网络
I would like to persist ASP session data in JSON format. I have written this code : Dim piece_ : Set piece_ = JSON.parse(\"{\"\"code\"\":\"\"\"\",\"\"quantity\"\":\"\"0\"\",\"\"printed\"\":\"\"false\

I would like to persist ASP session data in JSON format. I have written this code :

Dim piece_ : Set piece_ = JSON.parse("{""code"":"""",""quantity"":""0"",""printed"":""false"",""familles"":""[]""}")
      piece_.set "code", Collection(key).code
      piece_.set "quantity", Collection(key).quantity
      piece_.set "familles", Collection(key).familles_.ToJavaScript()
开发者_运维问答

I get an error with the Set method. My system is WinXp Pro SP3 - IIS 5. What's going wrong? Thx


Try piece_.set("code",Collection(key).code))

0

精彩评论

暂无评论...
验证码 换一张
取 消