jorkin / aspjson

Automatically exported from code.google.com/p/aspjson
0 stars 0 forks source link

Empty array is rendered incorrectly #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Dim data()
ReDim data(0)
Dim json

Set json = jsObject()
Response.Write toJSON(data)

What is the expected output? 

[]

What do you see instead?

[null]

What version of the product are you using? On what operating system?

The version used is JSON_2.0.4.asp. JSON_2.0.4.asp works correctly as expected.

Please provide any additional information below.

After looking at the source code, I believe JSON_2.0.3.asp is affected also.

Original issue reported on code.google.com by clemens....@gmail.com on 30 Jun 2010 at 11:26