Struct SystemTextAdapter
Struct SystemTextAdapter
implements IJson by
wrapping a System.Text.Json.JsonElement.
Assembly: Jtd.Jtd.dll
Syntax
public struct SystemTextAdapter : IJson
Constructors
|
Improve this Doc
View Source
SystemTextAdapter(JsonElement)
Constructs a SystemTextAdapter
around a JsonElement
.
Declaration
public SystemTextAdapter(JsonElement element)
Parameters
Type |
Name |
Description |
System.Text.Json.JsonElement |
element |
the element 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