<div>Hello.<br></div><div><br></div><div>I&#39;m writing a new JQWidget component and I need generate js code like this for correctly load of  the wrapped plugin:</div><div>$(&quot;#id&quot;).funcname({&quot;op1&quot;:[{&quot;subop1&quot;:&quot;value1&quot;,&quot;subop2&quot;:&quot;value2&quot;,...}],...});</div>
<div><br></div><div><br></div><div>I don&#39;t know how do it. I have a method JQMyWidget&gt;&gt;subop1:value, where I write some [stupid] implementation:</div><div><br></div><div>1) self optionAt: &#39;op1&#39; put: (Array with: &#39;subop1&#39; with: value)     =&gt;    $(&quot;#id&quot;).funcname({&quot;op1&quot;:[&quot;subop1&quot;,&quot;value&quot;]})</div>
<div><div><br></div><div>2) self optionAt: &#39;op1&#39; put: (&#39;subop1&#39; -&gt; value)     =&gt;    $(&quot;#id&quot;).funcname({&quot;op1&quot;:&#39;subop1&#39;-&gt;&#39;value&#39;})</div><div><br></div><div><div>3) self optionAt: &#39;op1&#39; put: (self optionAt: &#39;subop1&#39; put: value)     =&gt;    $(&quot;#id&quot;).funcname({&quot;op1&quot;:&quot;value&quot;,&quot;subop1&quot;:&quot;value&quot;})</div>
<div><br></div><div>Any idea? Thanks in advance.</div></div></div>