ArraySize after ExtractJSONArray

Found an issue in SpiderBasic ? Please report it here !
Bradan
Posts: 18
Joined: Fri Nov 04, 2016 2:07 pm

ArraySize after ExtractJSONArray

Post by Bradan »

Hello,

I've modified the ExtractJSONArray example a bit to show the problem:

Code: Select all

ParseJSON(0, "[[0, 1, 2], [3, 4, 5], [6, 7, 8]]")

Dim a(0, 0)
ExtractJSONArray(JSONValue(0), a())

Debug ArraySize(a(), 1)
Debug ArraySize(a(), 2)

For x = 0 To 2
  For y = 0 To 2
    ; Debug a(x, y)
  Next y
Next x
Prints 0 and 2 here. I bought a license renewal to check whether the problem still exists in the current version and it does.