# How to fetch json data from url in combo box

**URL:** <https://forum.shopware.com/t/how-to-fetch-json-data-from-url-in-combo-box/19011>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [12. März 2014 um 07:50 UTC](https://forum.shopware.com/t/how-to-fetch-json-data-from-url-in-combo-box/19011 "2014-03-12T07:50:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![developer-007](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@developer-007](https://forum.shopware.com/u/developer-007)\
**Post date:** [12. März 2014 um 07:50 UTC](https://forum.shopware.com/t/how-to-fetch-json-data-from-url-in-combo-box/19011/1 "2014-03-12T07:50:41Z")

</div>

How to add json data in combobox using remote url. I am getting error in below code. ` fields.add({ xtype:'combo', displayField: 'names', valueField: 'names', store: new Ext.data.Store({ fields: [name:"names", type:"string"], proxy : { api : { read : " Remote Url Here ", }, reader : { type : "json" }, } }), }); ` can any one have proper code or any idea for above function
