You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Cristian, by coincidence I've found a bug in your VBA-FastJSON library.
Import LibJSON.bas and Dictionary.cls (your FastDictionary class) into an empty VBA project.
Execute ?LibJSON.Serialize(Array(New Dictionary, Array(1)))
in the VBE immediate window.
Instead of the expected result "[{},[1]]" a runtime error 9 occurs accessing vars.vt(0) in line Dim vt As VbVarType: vt = vars.vt(0) And &H3FFF& 'Remove VT_BYREF
The following doesn't raise an error: ?LibJSON.Serialize(Array(New Dictionary, 1))
Also the following works as expected: ?LibJSON.Serialize(Array(New Collection, Array(1)))
Activity
Fix for #16
cristianbuse commentedon Oct 22, 2026
Thank you @MarioAnthes
This has been fixed in latest release