Javascript Error ":" Expected
<p>Helo all im setting  JSON-like data format to ne used by a JS libray called fusioncharts.</p>

<p>At the bottom is a section called "Data" and in there the error is happening at the second object: <code>totalFundedValue</code></p>

<p>Ok here is a snippet of my rendered HTML:</p>

<pre><code>var totalFunded =  '109321734.06';

var totalFundedValue;
var totalFundedLabel;
var totalFundedText;


if (totalFunded != null)  
{
totalFundedLabel.push({ "label": "Funded",});
totalFundedValue.push({"value": "109321734.06"});
 totalFundedText.push({"toolText": "$109,321,734.06"});
}


"data":[{
    totalFundedLabel
    totalFundedValue
    totalFundedText
  }
]
</code></pre>

<p>JS:</p>

<pre><code>var totalFunded =  '${totalFunded}';

var totalFundedValue;
var totalFundedLabel;
var totalFundedText;


if (totalFunded != null)  
{
totalFundedLabel.push({ "label": "Funded",});
totalFundedValue.push({"value": &lt;tld-msst:fc-value var="${totalFunded}"/&gt;,});
totalFundedText.push({"toolText": "&lt;fmt:formatNumber value='${totalFunded}' type='currency' groupingUsed='true' /&gt;"});
}
</code></pre>

<p>just for clarification, this is what it looks like without using the push methods:</p>

<pre><code>   data: [{
    "label":"Funded",
    "value":"${totalFunded}",
    "toolText": "&lt;fmt:formatNumber value='${totalFunded}' type='currency' groupingUsed='true' /&gt;"
  },
</code></pre>
