Open PratikVasagadekar opened 3 years ago
Honestly, VBA-JSON is probably not the correct tool to be using if you have JSON that is 10MB in size.
VBA.Left
works that means your in-memory working size for just those two strings is 22MB!VBA.Left
, it will create numerous objects and those objects will more than likely increase the in-memory working size by double, if not triple, on top of the 22MB you already are using by those two string.Since you didn't provide much information about what you are trying to accomplish, it is suggest you reconsider what you are trying to accomplish and/or use a different tool for your purpose. MySQL or another database that handles JSON data might be a better fit since you can slice the JSON up and dump it into tables, where you could import the table(s) into Excel for possible further analysis.
I am trying to Build a JSON file around my VBA Project, but I am getting the Out of String Space error when trying to convert my strings to JSON
ConvertToJson(JSONCollItems, Whitespace:=3)
It does appear when I am trying to ConvertToJson on huge Multiline strings.
After debugging, the error is stuck at
Could you provide any suggestion to getting around this?