in an html page i have got, i have a select box like this with values.
You can use parseJSON to convert the string to an object when using it, but the value needs to be a string.
var option = $('select').val(); var selected = $.parseJSON(option); alert( selected.name + ': ' + selected.age );