logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class JsonStringEscaper

    Appends an RFC 8259 quoted, escaped JSON string literal to a StringBuilder.

    Inheritance
    object
    JsonStringEscaper
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.StructuredPersistence.Infrastructure.Json
    Assembly: Serenity.StructuredPersistence.Json.dll
    Syntax
    public static class JsonStringEscaper

    Methods

    WriteQuotedString(StringBuilder, string)

    Appends value to builder as a quoted, escaped JSON string.

    Declaration
    public static void WriteQuotedString(StringBuilder builder, string value)
    Parameters
    Type Name Description
    StringBuilder builder

    The builder to append to.

    string value

    The raw string value to escape and quote. Must not be null.

    In this article
    © 2026 Serenity. All Rights Reserved