# `Ash.Info.Manifest.JsonSerializer`
[🔗](https://github.com/ash-project/ash/blob/v3.25.2/lib/ash/info/manifest/json_serializer.ex#L5)

Serializes `%Ash.Info.Manifest{}` structs to JSON.

Recursively converts structs to maps, converting module atoms to strings
and omitting nil fields.

# `to_json`

```elixir
@spec to_json(
  Ash.Info.Manifest.t(),
  keyword()
) :: {:ok, String.t()} | {:error, term()}
```

Serialize an `%Ash.Info.Manifest{}` to a JSON string.

# `to_map`

```elixir
@spec to_map(Ash.Info.Manifest.t()) :: map()
```

Convert an `%Ash.Info.Manifest{}` to a plain map (suitable for JSON encoding).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
