allow overriding the angular serializer with `serializer: "json"`