how to create Array of dictionary keyvalue pairs in javascript?
<pre><code>var category = [{
    key: 'a',
    value: 'avinash'
}, {
    key: 'b',
    value: 'balaji'
}, {
    key: 's',
    value: 'satish'
}, {
    key: 'd',
    value: 'dheeraj'
}, {
    key: 'p',
    value: 'poonam'
}, ];
</code></pre>

<p>Is this is Right Way to create? If not,Can any1 suggest me?</p>
