Possible Duplicate:
How to parse JSON easily?
I have this string:
[{text: 'First Option', value: 'first'},{text: 'Second Option', value: 'second'},{text: 'Third Option', value: 'third'}]
How do I convert it into an array/object in the same form in javascript?
Could either use
var data = JSON.parse(yourString);orvar data = eval('(' + yourString+ ')');