Couchbase .NET SDK __CB_SDK_VERSION__

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

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

View Source

ToDynamic()

Returns a dynamic object representing the current token.

Declaration
dynamic ToDynamic()
Returns
Type Description
dynamic

The dynamic object.

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.

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
  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.