hallo Thank you for your answers. I tried 2 codes but it does not work.i have a JSON object look like this
[{"name":"aaa","0":"aaa","city":"paris","1":"paris","school":"gtdzh","2":"gtdzh"},
{"name":"bbb","0":"bbb","city":"berlin","1":"berlin","school":"gdezh","2":"gdezh"},
{"name":"ccc","0":"ccc","city":"new york","1":"new york","school":"asdzh","2":"asdzh"},
{"name":"aaa","0":"aaa","city":"sidney","1":"sidney","school":"gtdcv","2":"gtdcv"},
{"name":"bbb","0":"bbb","city":"paris","1":"paris","school":"gtdzh","2":"gtdzh"}]
i want to fill a drop down list with distinct values selected from a field of my Json object
for Example: I have 2 persons who had study in 2 cities aaa and bbb. how to do so that i does not have a duplication into my drop down list.