Couchbase .NET SDK | 3.7.0
Search Results for

    Show / Hide Table of Contents

    Interface IJsonToken

    Used to support dynamic object reading during streaming JSON deserialization.

    Namespace: Couchbase.Core.IO.Serializers
    Assembly: Couchbase.NetClient.dll
    Syntax
    public interface IJsonToken

    Properties

    | Edit this page View Source

    this[string]

    Gets the value of a particular attribute of this token. Returns null if the attribute is not found.

    Declaration
    IJsonToken? this[string key] { get; }
    Parameters
    Type Name Description
    string key

    Name of the attribute.

    Property Value
    Type Description
    IJsonToken

    Methods

    | Edit this page View Source

    ToDynamic()

    Returns a dynamic object representing the current token.

    Declaration
    dynamic ToDynamic()
    Returns
    Type Description
    dynamic

    The dynamic object.

    | Edit this page View Source

    ToObject<T>()

    Deserializes the token to an object.

    Declaration
    T ToObject<T>()
    Returns
    Type Description
    T

    The object.

    Type Parameters
    Name Description
    T

    Type of object.

    | Edit this page View Source

    Value<T>()

    Returns the token cast as a particular type, such as a string or integer.

    Declaration
    T Value<T>()
    Returns
    Type Description
    T

    The value.

    Type Parameters
    Name Description
    T

    Type to cast.

    See Also

    IJsonStreamReader
    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.