JSON Serialization – System.Text.Json
.NET Core 3.0 óta a keretrendszer beépítetten tartalmaz egy JSON szerializálót, ami a System.Text.Json névtérben található. Használata hasonló a Newtonsoft JSON szerializálóhoz. A szerializálásra és deszerializálásra itt a JsonSerializer statikus osztályt használhatjuk. string Serialize<TValue> (TValue value, JsonSerializerOptions? options = default); void Serialize<TValue> (Stream utf8Json, TValue value, JsonSerializerOptions? options = default); Szerializáció esetén megadhatunk egy JsonSerializerOptions […]