1

How can I parse json data in Excel vba without using "Microsoft scripting runtime"? My company considers "Microsoft scripting runtime" to be a security risk so I can't use it.

I have been parsing JSON using vba string manipulation functions but that is painful.

Various answers in other questions suggest the VBA-JSON project, or ScriptControl, but they need "Microsoft scripting runtime". Sorry for using bold, but this question previously got closed, with a link to another question which recommends using "Microsoft scripting runtime".

4
  • It might be a bit easier to parse using Regular Expressions. Or perhaps you could use the MAC dictionary project in place of scripting runtime. Sep 26, 2020 at 0:51
  • @RonRosenfeld thanks, the dictionary project is useful if I will be parsing JSON myself.
    – rleir
    Sep 26, 2020 at 1:01
  • 1
    The VBA-JSON author has a drop-in Scripting.Dictionary replacement which also gives you Mac support github.com/VBA-tools/VBA-Dictionary. You don't need Scripting runtime in that case. Sep 26, 2020 at 4:08
  • @TimWilliams your comment should be an answer. thanks -- Rick
    – rleir
    Sep 28, 2020 at 10:59

1 Answer 1

1

The answer by ExcelHero (Daniel Ferry) at

Parsing JSON in Excel VBA and

https://medium.com/swlh/excel-vba-parse-json-easily-c2213f4d8e7a

is a big win compared to my string manipulation.

Not the answer you're looking for? Browse other questions tagged or ask your own question.