I have json file 'stars.json':
{"person":
[
{
"name": "a"
},
{
"name": "b"
},
{
"name": "c"
},
{
"name": "d"
}
]
}
then I would like to send data to kendo element:
$('#grid').kendoDropDownList({
autoWidth: false,
filter: "startswith",
value: self.valore,
optionLabel: "Select value...",
dataSource: {
}
});
What should I do in the datasource to convert json to simple array? I would like to get something like this:
data=['a','b','c','d'];