# JSON Serialization

Converting an object to JSON text or reconstructing an object from JSON.

## What is **JSON Serialization** in C#?

**JSON Serialization** — Converting an object to JSON text or reconstructing an object from JSON.

```csharp
using System.Text.Json;

class OrderWriter
{
    string ToJson(Order order)
    {
        return JsonSerializer.Serialize(order);
    }
}

record Order(string Item);
```

Level: Journeyman · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/journeyman)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/json-serialization
