Cosmetic question: I have a html element containing possible dimensions for some embedded images, these are stored as:
Try this and you can keep nicely formatted JSON in the attribute:
$.parseJSON($('.inside').data('dimensions').replace(/'/g,"\""))