Help with the $get

Help with the $get

Hi,

This is my situation, I have an app that brings back a JSON file, only problem is that there might be HTML in the JSON file from time to time. I don't have the power to parse that out before it hit my page so I have switched from getJSON to just get and I'm grabing the extract as is.

Once I have the file I parse out the stuff using JS to get a clean JSON variable it looks like this.

{images:
{limage:"",timage:"/thumbnail.jpg",title:"This is a test",vurl:"",abstract:"This is a test for the video",filetype:"Video",VidLink:"http://google.com",body:"\' 'will this work' \'"}}

When I run the $each loop:

$each(name, function(i, val) {
     alert(i+' name: '+val.timage);
    });

I get an undefined in the alert and it just seems to loop for ever.

So I guess my question is how can I use the get to get the JSON file, format it as needed and then loop over the results? I have been banging my head on this for a bit now and I cannot seem to get this working.

Obviosly I would love it if there was a way to post parse the JSON file so JQuery would accept it but I have not found anything to do such a thing.

Anyhow many thanks to anyone who can help out.

Mike.