Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // how you get 'input' is up to you, and if you don't want to just write out a blank page you won't want to use document.write
- var input = "[{id:44834,title:'Max Payne Unrated 2008 1080p Blu-ray CEE AVC DTS-HD-SSG',size:'32.14 GB',seeder:1,leecher:0}]";
- var output = eval('(' + input + ')');
- for(var i=0; i<output.length; i++)
- {
- document.write('<table>');
- for(key in output[i])
- {
- document.write('<tr><td>' + key + ':</td><td>' + output[i][key] + '</td></tr>');
- }
- document.write('</table>');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement