Hello, best regards to all.
I am trying to obtain unique data that are in a map collection.
Example:
In a map collection I have
So I would like to get only:
I would appreciate a lot if you can help me with this question.
I am trying to obtain unique data that are in a map collection.
Example:
In a map collection I have
JSON:
[{{"Supplier": "COCA COLA", "Color": "BLACK"},
{"Supplier": "COCA COLA", "Color": "BLACK"},
{"Supplier": "COCA COLA", "Color": "BLACK"},
{"Supplier": "COCA COLA", "Color": "BLACK"},
{"Supplier": "COCA COLA", "Color": "YELLOW"},
{"Supplier": "NIKE", "Color": "ZERO"},
{"Supplier": "JORDANS", "Color": "RED"},
{"Supplier": "JORDANS", "Color": "RED"},
{"Supplier": "PEPSI", "Color": "NORMAL"},
{"Supplier": "PEPSI", "Color": "LITE"},
{"Supplier": "PEPSI", "Color": "LITE"},
{"Supplier": "PEPSI", "Color": "LITE"},
}]
So I would like to get only:
Supplier: COCA COLA, Color: BLACK
Supplier: COCA COLA, Color: RED
Supplier: COCA COLA, Color: YELLOW
Supplier: NIKE, Color: ZERO
Supplier: JORDANS, Color: RED
Supplier: PEPSI, Color: NORMAL
Supplier: PEPSI, Color: LITE
I would appreciate a lot if you can help me with this question.