fixed typing of jsonGenerator so it can be actually overridden