Show / Hide Table of Contents

    Class JsonWriterExtensions

    Extension methods for the .

    Inheritance
    System.Object
    JsonWriterExtensions
    Namespace: Cuemon.Serialization.Json
    Assembly: Cuemon.Serialization.Json.dll
    Syntax
    public static class JsonWriterExtensions : object

    Methods

    | Improve this Doc

    WriteObject(JsonWriter, Object, JsonSerializerSettings)

    Serializes the specified value and writes the JSON structure using the specified writer.

    Declaration
    public static void WriteObject(this JsonWriter writer, object value, JsonSerializerSettings settings = null)
    Parameters
    Type Name Description
    JsonWriter writer

    The used to write the JSON structure.

    System.Object value

    The to serialize.

    JsonSerializerSettings settings

    The settings to associate with the specified writer. Default is .

    | Improve this Doc

    WritePropertyName(JsonWriter, String, Func<Boolean>, Boolean)

    Writes the property name of a name/value pair of a JSON object.

    Declaration
    public static void WritePropertyName(this JsonWriter writer, string name, Func<bool> useCamelCaseFactory, bool escape = false)
    Parameters
    Type Name Description
    JsonWriter writer

    The used to write the JSON structure.

    System.String name

    The name of the property.

    Func<System.Boolean> useCamelCaseFactory

    The function delegate that will resolve whether the name will be converted to a camelCase representation (true) or a PascalCase representation.

    System.Boolean escape

    A flag to indicate whether the text should be escaped when it is written as a JSON property name.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX