code: @Override
      public PolygonPoint deserialize(final JsonElement json, final Type typeOfT,
              final JsonDeserializationContext context) {
  
          final PolygonPoint point;
  
          if (json.isJsonArray()) {
              final JsonArray pointsJsonArray = json.getAsJsonArray();
              point = new PolygonPoint();
              point.setLongitude(pointsJsonArray.get(0).getAsDouble());
              point.setLatitude(pointsJsonArray.get(1).getAsDouble());
          } else {
              throw new JsonParseException("Unexpected data: " + json.toString());
          }
  
          return point;
      }
docs: {@inheritDoc}
  
  @see com.google.gson.JsonDeserializer#deserialize(com.google.gson.JsonElement,
  java.lang.reflect.Type, com.google.gson.JsonDeserializationContext)