I am getting this object value as string
'{gallery: 'gal', smallimage: 'http://www.website.com/image.jpg',largeimage: 'http://www.website.com/image1.jpg'}'
How can i read this using jquery? Currently i am using this following function as bellow to read this but i can't find value in $each
$(".jcarousel-item a").click(function() {
alert($(this).attr("rel"));//I can find this object value here
$.each($(this).attr("rel"), function(index, value) {
alert(index + ': ' + value);
});
});