Sub ScriptControlfunction_32bit_convert_to_excel_64bit() Dim xmlhttp As Object, jsonData As Object, url As String, response As String, Stock As String Dim DecodeJson As Object, i As Integer
Set xmlhttp = CreateObject("msxml2.xmlhttp") Set jsonData = CreateObject("MSScriptControl.ScriptControl")
'jsonData.Language = "JScript"
Set jsonData = CreateObject("HtmlFile") 'json string to json object jsonData.write "document.JsonParse=function (s) {return eval('(' + s + ')');}" 'getkeys (unknow name OK) jsonData.write "document.getKeys=function (s) {var keys = new Array(); for (var i in s) { keys.push(i); } return keys; }" 'GetObjectProperty、getProperty (like callbyname) jsonData.write "document.getProperty=function (s,propertyName) { return s[propertyName]; }"