hardcoded `JsonSerializer` should not be here, we might have a `default serializer` specified in `defaults.yaml`