Class JsonSerializerExtensions
- Namespace
- Nerdbank.Json
- Assembly
- Nerdbank.Json.dll
Extension methods for the JsonSerializer class.
public static class JsonSerializerExtensions
- Inheritance
-
JsonSerializerExtensions
- Inherited Members
Remarks
These extension methods preserve the convenient serializer entry points for target frameworks
that cannot use the constrained IShapeable<T> instance overloads, and for values that
rely on dynamic shape discovery or witness types.
Some of these methods will be very typical when targeting .NET Standard or .NET Framework, but when targeting .NET, the compiler will prefer the instance methods on the JsonSerializer class itself. These instance methods are faster and produce compile errors rather than runtime exceptions that may be thrown by these extension methods.