Hi all,

I set a scriptcontrol object in VBA to run jscript, and want to use the following javascript to flatten a nested JSON object, but when I run it on my parsed JSON object, it tells me "Run Time Error 5007 - object expected"

Does anyone know why this happens?
I can't post the javascript, but basically it's the first reply from SO/questions/19098797; Object.Flatten

Any help is welcome!

Thanks,

Jaspper