hdac SDK
SDK for hdac blockchain development
|
Converts XML to and from JSON. 더 자세히 ...
Public 멤버 함수 | |
override void | WriteJson (JsonWriter writer, object value, JsonSerializer serializer) |
Writes the JSON representation of the object. 더 자세히 ... | |
override object | ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) |
Reads the JSON representation of the object. 더 자세히 ... | |
override bool | CanConvert (Type valueType) |
Determines whether this instance can convert the specified value type. 더 자세히 ... | |
![]() | |
virtual JsonSchema | GetSchema () |
Gets the JsonSchema of the JSON produced by the JsonConverter. 더 자세히 ... | |
속성 | |
string | DeserializeRootElementName [get, set] |
Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produces multiple root elements. 더 자세히 ... | |
bool | WriteArrayAttribute [get, set] |
Gets or sets a flag to indicate whether to write the Json.NET array attribute. This attribute helps preserve arrays when converting the written XML back to JSON. 더 자세히 ... | |
bool | OmitRootObject [get, set] |
Gets or sets a value indicating whether to write the root JSON object. 더 자세히 ... | |
![]() | |
virtual bool | CanRead [get] |
Gets a value indicating whether this JsonConverter can read JSON. 더 자세히 ... | |
virtual bool | CanWrite [get] |
Gets a value indicating whether this JsonConverter can write JSON. 더 자세히 ... | |
Converts XML to and from JSON.
|
inlinevirtual |
Determines whether this instance can convert the specified value type.
valueType | Type of the value. |
true
if this instance can convert the specified value type; otherwise, false
.
|
inlinevirtual |
Reads the JSON representation of the object.
reader | The JsonReader to read from. |
objectType | Type of the object. |
existingValue | The existing value of object being read. |
serializer | The calling serializer. |
|
inlinevirtual |
Writes the JSON representation of the object.
writer | The JsonWriter to write to. |
serializer | The calling serializer. |
value | The value. |
|
getset |
Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produces multiple root elements.
The name of the deserialize root element.
|
getset |
Gets or sets a value indicating whether to write the root JSON object.
true
if the JSON root object is omitted; otherwise, false
.
|
getset |
Gets or sets a flag to indicate whether to write the Json.NET array attribute. This attribute helps preserve arrays when converting the written XML back to JSON.
true
if the array attibute is written to the XML; otherwise, false
.