docs icon indicating copy to clipboard operation
docs copied to clipboard

No instructions for registering JsonConverterFactory implementations

Open brandonh-msft opened this issue 1 year ago • 1 comments

Type of issue

Missing information

Description

The documentation elaborates very well how to register a custom converter, however, it shows how and when to create a converter factory but not how to register said factory.

Page URL

https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/converters-how-to?pivots=dotnet-8-0#sample-factory-pattern-converter

Content source URL

https://github.com/dotnet/docs/blob/main/docs/standard/serialization/system-text-json/converters-how-to.md

Document Version Independent Id

678c4f23-764a-7ccd-0d6d-159a30957477

Article author

@gewarren

Metadata

  • ID: 5de37d79-751f-e372-e866-efde28f4908c
  • Service: dotnet-fundamentals

brandonh-msft avatar Apr 27 '24 04:04 brandonh-msft

According to the code, a JsonConverterFactory inherits from JsonConverter, so the factory should have to be registered the same way as for other custom converters.

NikoGJ avatar Aug 16 '24 13:08 NikoGJ