Can I convert a json input to a list of objects within jquery?
<p>I'm sorry in advance if this question is not explained correct, I'm new to jquery and just playing for fun.    I have some <a href="https://github.com/balancemedia/Timeline" rel="nofollow">code</a> that I want to try to modify for my needs but the current js file is getting its data from google spreadsheets and then returning each item as objects. I don't use json to pass data from my server to jquery so I'm wondering how I can convert json to objects.</p>

<p>The current way its doing it is(tabletop is the name of their js program that gets data from google docs):</p>

<pre><code>Tabletop.init({
    key: timelineConfig.key,
    callback: setupTimeline,
    wanted: [timelineConfig.sheetName],
    postProcess: function(el){
        //alert(el['photourl']);
        el['timestamp'] = Date.parse(el['date']);
        el['display_date'] = el['displaydate'];
        el['read_more_url'] = el['readmoreurl'];
        el['photo_url'] = el['photourl'];
    }
});
</code></pre>

<p>I have added alerts all over the file and I think this is the area that gets the data and passes it on. I was thinking of trying to replace items in their object with objects from my json and see if it changes anything, but I'm unsure.  Typrically I pass individual items via json,hashmaps, and lists, not sure how it works with objects or how to access objects(I simply call url's that I create for the requests, <code>$("#user-history").load("/cooltimeline/{{ user.id }}");</code>).   But where do I start if I want to turn json data into objects?</p>

<p>If it helps, here's the <a href="http://builtbybalance.com/github-timeline/" rel="nofollow">demo</a> of what I'm trying to do(but by having it use json data).</p>

<p>Thanks!</p>

<p>p.s. Sorry again if this question is odd.  It makes sense to me but as with all my jquery questions I get the feeling there's a must simpler approach than I am attempting and I'm describing the problem incorrectly.   I'm really looking for the logic of how to complete what I'm trying to do and perhaps some ideas I'm missing so I can google them and learn.</p>
