using $.getJSON with JSCharts
<p>I am a beginner in JSCharts. I'm using $.getJSON to load  json files and 
with them i want to create charts with JSCharts. I am getting the message:</p>

<p>JSChart: Input data in wrong format for selected chart type</p>

<pre><code> var x= new Array();

 $.getJSON('test.json', function(data) {

  $.each(data, function(key, val) {

  x.push(val[0].abs);
  x.push(val[1].ord)
});
 });

var myChart = new JSChart('chartcontainer', 'line');
myChart.setDataArray(x);
myChart.draw();
</code></pre>

<p>Any ideas how to change to format, so it can be accepted by jscharts?</p>

<p>Even if i pass them as integers they are not accepted.
Json looks like this:</p>

<pre><code>   " cordonnee " : [ { " abs " : "45" } ,
                     { " ord " : "12" }
                   ],

     "autre" : [ { "abs": "68" } ,
                 { " ord " : "13" }
               ]
</code></pre>

<p>Thank you</p>
