nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.MIME.application.json / JSONSerializer

JSONSerializer

Full name Microsoft.VisualBasic.MIME.application.json.JSONSerializer Assembly Microsoft.VisualBasic.MIME.application.json Members 7

01 Syntax

Microsoft.VisualBasic.MIME.application.json.JSONSerializer

02 Methods

NameOverloadsSummary
GetJson 1
CreateJSONElement 1 Convet any clr object into a JsonElement based instance.
GetJson 1
CreateJSONElement 1
BuildJsonString 2
WriteJSON 1

03 Members

method GetJson #
GetJson``1(``0, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
Type Parameters
NameDescription
T
Parameters
NameTypeDescription
obj``0

-

maskReadonlyBoolean

如果这个参数为真,则不会序列化只读属性

commentBoolean

add property xml comment summary as comment into the generated json text? this option usually be apply to generates the config json file.

method CreateJSONElement #
CreateJSONElement``1(``0, Boolean, Boolean, Boolean, Boolean)

Convet any clr object into a JsonElement based instance.

Type Parameters
NameDescription
T
Parameters
NameTypeDescription
obj``0

-

maskReadonlyBoolean

-

enumToStrBoolean

-

unixTimestampBoolean

-

method GetJson #
GetJson(T, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
method CreateJSONElement #
CreateJSONElement(T, Boolean, Boolean, Boolean, Boolean)
method BuildJsonString #
BuildJsonString(JsonElement, Boolean, Boolean)
method BuildJsonString #
method WriteJSON #
WriteJSON(JsonElement, Stream, JSONSerializerOptions, Boolean)