﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2652	Allow ExpandVarStrings to expand com properties as well.	this-is-me	Jon	"The ExpandVarStrings option does not currently expand if the variable is actually a com property. It would be nice if expansion could happen on these properties as well.

{{{
Opt(""ExpandVarStrings"", 1)

Global $objJSONScript = ObjCreate(""ScriptControl"")
With $objJSONScript
    .language = ""Jscript""
    .AddCode(""Array.prototype.item=function(i){return this[i]};Object.prototype.item=function(i){return this[i]};Object.prototype.addProp=function(prop,val){eval('this.'+prop+'='+val)};"")
EndWith

$vars = JSON('{' & _
'""widget"": {' & _
'    ""debug"": ""on"",' & _
'    ""window"": {' & _
'        ""title"": ""Sample Konfabulator Widget"",' & _
'        ""name"": ""main_window"",' & _
'        ""width"": 500,' & _
'        ""height"": 500' & _
'    }' & _
'}' & _
'}')

MsgBox(0,"""",$vars.widget.window.title)
MsgBox(0,"""",""$vars.widget.window.title$"")

Func JSON($def = ""{}"")
    $objJSONScript.Eval(""var z="" & StringReplace($def, ""\"", ""\\""))
    Return $objJSONScript.Eval(""z"")
EndFunc   ;==>JSON
}}}"	Feature Request	assigned		AutoIt		None			
