Struct NewtonsoftAdapter
Struct NewtonsoftAdapter
implements IJson by
wrapping a Newtonsoft.Json.Linq.JToken.
Assembly: Jtd.Jtd.dll
Syntax
public struct NewtonsoftAdapter : IJson
Constructors
|
Improve this Doc
View Source
NewtonsoftAdapter(JToken)
Constructs a NewtonsoftAdapter
around a JToken
.
Declaration
public NewtonsoftAdapter(JToken token)
Parameters
Type |
Name |
Description |
Newtonsoft.Json.Linq.JToken |
token |
the token to wrap
|
Methods
|
Improve this Doc
View Source
AsArray()
Declaration
public IList<IJson> AsArray()
Returns
Type |
Description |
IList<IJson> |
|
|
Improve this Doc
View Source
AsBoolean()
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AsNumber()
Declaration
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
AsObject()
Declaration
public IDictionary<string, IJson> AsObject()
Returns
Type |
Description |
IDictionary<System.String, IJson> |
|
|
Improve this Doc
View Source
AsString()
Declaration
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
IsArray()
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsBoolean()
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsNull()
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsNumber()
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsObject()
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsString()
Declaration
Returns
Type |
Description |
System.Boolean |
|
Implements
See Also