How can I split data read from a json file?
<p>I have this json data in <code>data.json</code> file.</p>

<pre><code>[
"1009 2000",
"1009 2001",
"1002 2002",
"1003 2002"
]
</code></pre>

<p>I am looping through this data and spliting the data based on <code>,</code> as in the following code</p>

<pre><code>var show = function () {
    var span = $('.input');
    var c = $('ul');
    $.getJSON('data/data.json', function (id) {
        var j = id.split(',');
        var hsl = j[0];
        var ny = j[1];

        $('&lt;li&gt;' + id + '&lt;/li&gt;').appendTo(c);
        $(c).appendTo(span);
        console.log(hsl);
    });
}
</code></pre>

<p>but this gives me this error in console</p>

<pre><code>Object 1009 2000,1009 2001,1002 2002,1003 2002 has no method 'split' 
</code></pre>

<p>How can I split this data so that I could display it like this</p>

<pre><code> 1009 2000
 1009 2001
 1002 2002
 1003 2002
</code></pre>
