JSONSerializer
01 Syntax
Microsoft.VisualBasic.MIME.application.json.JSONSerializer
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| GetJson | 1 | |
| CreateJSONElement | 1 | Convet any clr object into a JsonElement based instance. |
| GetJson | 1 | |
| CreateJSONElement | 1 | |
| BuildJsonString | 2 | |
| WriteJSON | 1 |
03 Members
GetJson``1(
``0, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
obj | ``0 | - |
maskReadonly | Boolean | 如果这个参数为真,则不会序列化只读属性 |
comment | Boolean | add property xml comment summary as comment into the generated json text? this option usually be apply to generates the config json file. |
CreateJSONElement``1(
``0, Boolean, Boolean, Boolean, Boolean)Convet any clr object into a JsonElement based instance.
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
obj | ``0 | - |
maskReadonly | Boolean | - |
enumToStr | Boolean | - |
unixTimestamp | Boolean | - |
GetJson(
T, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)CreateJSONElement(
T, Boolean, Boolean, Boolean, Boolean)BuildJsonString(JsonElement, JSONSerializerOptions)