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 Sourcethis[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 SourceToDynamic()
Returns a dynamic object representing the current token.
Declaration
dynamic ToDynamic()
Returns
Type | Description |
---|---|
dynamic | The dynamic object. |
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. |
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. |