C# 14 · Async, errors and resources

Serialize to and from JSON

Convert objects to JSON text and back with System.Text.Json.

var json = JsonSerializer.Serialize(person);
var again = JsonSerializer.Deserialize<Person>(json);

Official C# 14 documentation

More async, errors and resources commands

All async, errors and resources commands · C# 14 cheatsheet

Was this page helpful?