Skip to content
Docs Try Aspire
Docs Try

AtsJsonCodeWriter Methods

Class Methods 2 members
Provides JSON literal formatting helpers for generated ATS source code.
ToRelaxedJsonString(JsonNode) Section titled ToRelaxedJsonString(JsonNode) extension string
Formats a JSON node using relaxed escaping so non-ASCII content remains readable in generated source.
public static class AtsJsonCodeWriter
{
public static string ToRelaxedJsonString(
this JsonNode value)
{
// ...
}
}
value JsonNode
ToRelaxedJsonString(string) Section titled ToRelaxedJsonString(string) static string
Formats a string literal as JSON using relaxed escaping.
public static class AtsJsonCodeWriter
{
public static string ToRelaxedJsonString(
string value)
{
// ...
}
}
value string