My JSON is:
[ { \"distance\":32, \"stationCode\":\"MIG\", \"name\":\"Midghat\", \"platforms\":\"2\" }, { \"distance\":
There is no direct way to that but you can follow the way mentioned bellow:
Transform JsonObject to Java Object list using org.codehaus.jackson.map.ObjectMapper
Use a Java Map to make unique (put key = stationCode, javaObject as object)
Sort the map data based on distance.