I'm trying to use the .json file created by the example at: [https://docs.kentico.com/display/K8/Getting+data+using+REST](https://docs.kentico.com/display/K8/Getting+data+using+REST)
/
/cms.country
But this page gives me an answer like:
{"cms_countries":
[
{"cms_country":
[
{"countrydisplayname":"Afghanistan"}
,{"countrydisplayname":"Albania"}
,{"countrydisplayname":"Algeria"}
... ... ...
,{"countrydisplayname":"Zimbabwe"}
]
}
,{"TotalRecords":
[
{"TotalRecords":"246"}
]
}
]
}
when all I need, will be something like:
{"countrydisplayname":"Afghanistan"}
,{"countrydisplayname":"Albania"}
,{"countrydisplayname":"Algeria"}
... ... ...
,{"countrydisplayname":"Zimbabwe"}
SO, **is there a way to get my data using REST formatted to give me this answer** instead of the original one ?
(I meant, to get rid of "cms_countries" and "cms_country") I understand it will be possible also to parse this tree using other logic on my "typeahead" part, and use only the nodes I need, but... all tutorials on the web are pointing to the easy exemples :(
Thanks