Exception while calling json parse in vbscript RRS feed

  • Question

  • I'm getting error like this "Object required: '[string: ""]'" while call this function. Can you please someone help me on this.

    <script language= "javascript" runat= "server">

    Array.prototype.get = function(x) { return this[x]; }; function parseJSON(strJSON) { try { if(strJSON === "") return""; return eval("(" + strJSON + ")"); } catch(e){ return ""; } } </script>

    set jSONResponse = parseJSON(exchangeeSSOTokenAndGetProfileInfo(URL, body)) This is the vbscript code, here i'm calling parseJSON jscript function after that i'm getting "Object required: '[string: ""]' in browser seems like i need to set object can you please suggest vbscript object to call the parseJSON jscript function.

    Monday, March 30, 2020 6:57 AM

All replies

  • Your code is not VBScript.

    Please ask the author of your code for help.  

    Note that this forum is not an end user help or support forum.  It is only for trained techs who are writing code in Microsoft scripting languages,


    Monday, March 30, 2020 9:46 AM