If you only need an array (list) on the data map, then what patrick dw has is fine.
If you need a map on a data map, you need the following:
var data = {}; data['key'] = {'val1': 'val2'};
You can also simplify this use of JavaScript notation:
var data = {}; data.key = {val1: 'val2'};
Platinum azure
source share