rcdmk / aspJSON

A fast classic ASP JSON parser and encoder for easy JSON manipulation to work with the new JavaScript MV* libraries and frameworks.
MIT License
203 stars 89 forks source link

Serialize Bug #21

Closed ezzatelbadrawy closed 8 years ago

ezzatelbadrawy commented 8 years ago

Hi,

I use ' JSON object class 3.4.1 - May, 29th - 2016

And I got this error when call varJSON.Serialize() method:

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'obj.pairs'

/jsonObject.class.asp, line 618

Thanks

rcdmk commented 8 years ago

Hi. Can you please give me some example string to pares, so I can reproduce the error in my local enviroment?

It seems to me its a peculiar case.

ezzatelbadrawy commented 8 years ago

Hi,

After long time from this debugging this issue I found it occur on this case: Dim varJSON1 Set varJSON1 = New JSONobject varJSON1.Add "action", Request("action")

But if but the request on variable and add the variable it success: Dim varJSON1, varAction Set varJSON1 = New JSONobject varAction = Request("action") varJSON1.Add "action", varAction

I hope this help you to fix this issue

Thanks

rcdmk commented 8 years ago

Thanks. This is a clue of the real problem. I should take a look at this before sunday.