# AtsJsonCodeWriter

- Kind: `class`
- Package: [Aspire.TypeSystem](/reference/api/csharp/aspire.typesystem.md)
- Version: `13.3.0`
- Namespace: `Aspire.TypeSystem`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.TypeSystem/AtsJsonCodeWriter.cs)

Provides JSON literal formatting helpers for generated ATS source code.

## Definition

```csharp
namespace Aspire.TypeSystem;

public static class AtsJsonCodeWriter
{
    // ...
}
```

## Methods

- [ToRelaxedJsonString(JsonNode)](/reference/api/csharp/aspire.typesystem/atsjsoncodewriter/methods.md#torelaxedjsonstring-jsonnode) : `string` `extension` -- Formats a JSON node using relaxed escaping so non-ASCII content remains readable in generated source.
- [ToRelaxedJsonString(string)](/reference/api/csharp/aspire.typesystem/atsjsoncodewriter/methods.md#torelaxedjsonstring-string) : `string` `static` -- Formats a string literal as JSON using relaxed escaping.
