code: @Override
      public Collection<AlertViolation> deserialize(JsonElement element, Type type, JsonDeserializationContext context)
          throws JsonParseException
      {
          JsonObject obj = element.getAsJsonObject();
          JsonArray violations = obj.getAsJsonArray("violations");
          List<AlertViolation> values = new ArrayList<AlertViolation>();
          if(violations != null && violations.isJsonArray())
          {
              for(JsonElement violation : violations)
                  values.add(gson.fromJson(violation, AlertViolation.class));
          }
          return values;
      }
docs: Gson invokes this call-back method during deserialization when it encounters a field of the specified type.
  @param element The Json data being deserialized
  @param type The type of the Object to deserialize to
  @param context The JSON deserialization context
  @return The alert violations