さまざまな州の複数の場所を持つ配列があります。
{"location":"Lekki Phase 1","state":"abc","country":"Nigeria"},
{"location":"Lekki Phase 2","state":"xyz","country":"Nigeria"},
{"location":"Osapa London1","state":"def","country":"Nigeria"},
{"location":"Lekki Phase 2","state":"abc","country":"Nigeria"},
{"location":"Lekki Phase 3","state":"xyz","country":"Nigeria"},
{"location":"Osapa London 2","state":"def","country":"Nigeria"},..........
これで、次のように、重複する状態のないさまざまな状態の配列を作成できます
{"abc","xyz","def"}
しかし、私が望むのは、すべての場所の状態を表に表示することです。
これどうやってするの??