Read the Microsoft documentation.
Good News:
Bad News:
System.Text.Json doesn't support the following serialization APIs that you might have used previously:
Attributes from the System.Runtime.Serialization namespace.
The System.SerializableAttribute attribute and the ISerializable interface. These types are used only for Binary and XML serialization.
Source: Microsoft Documentation