var json = {name: 'chan'};
var variable = 'age';
$.extend(json, {[variable]: 35});
$('#result').html(JSON.stringify(json));
This method works on most popular browsers except IE, I need to define object key dynamically, how to make it work on IE?