A VBA developer needs to call a REST API that returns JSON data and parse the result. Since VBA has no native JSON parser, what is the recommended approach?
-
A
Use the Split function to tokenize the JSON string manually
-
B
Use MSXML2.XMLHTTP or WinHttp to fetch the response, then parse with a third-party JSON library like VBA-JSON or use ScriptControl with JavaScript's JSON.parse
-
C
Convert JSON to XML first using a formula, then use MSXML DOM
-
D
Use Application.WorksheetFunction.FilterXML on the JSON string