use proper parameterized type on return value for mapViolationsToJson