SEMSEM123 / aspjson

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

Error ToJSON( ) #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Make Big MultiArray(bigger then 10by10 ) using "rs.getRows"
2. Make JSON DATA using "ToJSON()"
3. There is Some Data Loss Like (May be lost upper than 10-index's data
[691020,540631,271005,305032,98051,163428,148323,105066,172878,136589,,,,,,
,,,,,,,,] 

What is the expected output? What do you see instead?
[691020,540631,271005,305032,98051,163428,148323,105066,172878,136589,69102
0,691020,691020,691020,691020,691020,691020,691020,691020,691020,691020,691
020,691020,691020] 

What version of the product are you using? On what operating system?
Version 2.0.2 
WIN XP POR / IE7 & FF

Please provide any additional information below.
I commented all "On Error Resume Next" line 
Page Error at line no. 137  "       iDL = LBound(aBD, iBC)"
What's the Problem

Original issue reported on code.google.com by darkma...@gmail.com on 2 Oct 2008 at 9:25

GoogleCodeExporter commented 8 years ago
<!--#include file="JSON_latest.asp"-->
<%
Dim a(11,1)

a(0,0) = "zero - zero"
a(0,1) = "zero - one"
a(1,0) = "one - zero"
a(1,1) = "one - one"
a(2,0) = "zero - zero"
a(2,1) = "zero - one"
a(3,0) = "one - zero"
a(3,1) = "one - one"
a(4,0) = "zero - zero"
a(4,1) = "zero - one"
a(5,0) = "one - zero"
a(5,1) = "one - one"
a(6,0) = "zero - zero"
a(6,1) = "zero - one"
a(7,0) = "one - zero"
a(7,1) = "one - one"
a(8,0) = "zero - zero"
a(8,1) = "zero - one"
a(9,0) = "one - zero"
a(9,1) = "one - one"
a(10,0) = "zero - zero"
a(10,1) = "zero - one"
a(11,0) = "one - zero"
a(11,1) = "one - one"

Response.Write toJSON(a)
%>

Result Is 
[["zero - zero","zero - one"],["one - zero","one - one"],["zero - zero","zero - 
one"],["one - zero","one - one"],["zero - zero","zero - one"],["one - 
zero","one - 
one"],["zero - zero","zero - one"],["one - zero","one - one"],["zero - 
zero","zero - 
one"],["one - zero","one - one"],[,],[,]]

Original comment by darkma...@gmail.com on 2 Oct 2008 at 9:43

GoogleCodeExporter commented 8 years ago
multi digit index problem

Original comment by tugrulto...@gmail.com on 17 Dec 2008 at 11:43

GoogleCodeExporter commented 8 years ago
line 144:
    'If i <> 1 Then sPB2 = sPB2 & ","

Original comment by c...@litian.net on 6 Feb 2009 at 6:14

GoogleCodeExporter commented 8 years ago
Yes, the problem there. However, this solution is not valid.

Original comment by tugrulto...@gmail.com on 6 Feb 2009 at 1:29

GoogleCodeExporter commented 8 years ago
tugrultopuz,

I have provided a working solution for this problem under Issue 9. Please merge 
it 
into your code if it is acceptable. 

Thank you for all your work

Cheers,
Mark

Original comment by mark.pal...@gmail.com on 2 Jul 2009 at 9:40

GoogleCodeExporter commented 8 years ago

Original comment by tugrulto...@gmail.com on 8 Nov 2009 at 7:11

GoogleCodeExporter commented 8 years ago

Original comment by tugrulto...@gmail.com on 9 Nov 2009 at 11:03