# Sandbox.Json.Serialize

## Overload 1

```csharp
static string Serialize(object source)
```

Serialize an object.

### Parameters

- `source` (`object`)

### Returns

`string`

## Overload 2

```csharp
static void Serialize(System.Text.Json.Utf8JsonWriter writer, T target)
```

Serialize to a Utf8JsonWriter using our engine specific options.

### Parameters

- `writer` (`System.Text.Json.Utf8JsonWriter`)
- `target` (`T`)

## Overload 3

```csharp
static void Serialize(System.Text.Json.Utf8JsonWriter writer, object target, System.Type inputType)
```

Serialize to a Utf8JsonWriter using our engine specific options.

### Parameters

- `writer` (`System.Text.Json.Utf8JsonWriter`)
- `target` (`object`)
- `inputType` (`System.Type`)

Declared in [Sandbox.Json](/api/Sandbox.Json).
Assembly: `Sandbox.Engine`.
