Javascript Get Distinct Values From Json Array Example In Java