Closed dennisgaudenzi closed 3 years ago
Hi!
We had the same issue. The solution for us was changing the conversion from long to single (clng to csng ) aspjson.asp on Line 241.
val = CSng(Replace(val, ".", ""))
Private Function aj_ReadNumericValue(ByVal val)
If Instr(val, ".") > 0 Then
numdecimals = Len(val) - Instr(val, ".")
val = CSng(Replace(val, ".", ""))
val = val / (10 ^ numdecimals)
aj_ReadNumericValue = val
Else
aj_ReadNumericValue = Clng(val)
End If
End Function
Don't know if it will work with yours :)
see here for full resolution and good, full example of use. I think need to check v 1.18 vs 1.19 of the ASPJSON code as well on here.
I am trying to loop through some basic JSON and for some reason, I am getting a a Overflow: 'Clng' error when loading the JSON and cannot figure out why.
Here is my code, I am using the EXACT version 1.19 code from here: https://github.com/gerritvankuipers/aspjson
I cannot even get past this point since the error happens above this:
Here is the JSON: