nuget server logo nuget api documents
↑

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

JsonValue

Full name Microsoft.VisualBasic.MIME.application.json.Javascript.JsonValue Assembly Microsoft.VisualBasic.MIME.application.json Members 14

The primitive value type in javascript.

00 Remarks

(请注意,假若是字符串的话,值是未经过处理的原始字符串,可能会含有转义字符, 则这个时候还需要使用JsonValue.GetStripString()得到最终的字符串)

01 Syntax

Microsoft.VisualBasic.MIME.application.json.Javascript.JsonValue

02 Methods

NameOverloadsSummary
.ctor 2 create based on the value literal data
Literal 2 get literal value
GetStripString 1 处理转义等特殊字符串
ToString 1
op_Explicit 1

03 Properties

NameOverloadsSummary
IsLiteralNull 1 the literal value is nothing?
value 1
BSONValue 1
UnderlyingType 1
NULL 1
IsEmptyString 1

04 Fields

NameOverloadsSummary
_isRaw 1 indicates if the stored string JsonValue.value is still a raw json literal (may contain escape sequences) and needs to be decoded by JsonValue.GetStripString()).

05 Members

method .ctor overload 2 #
#ctor(Object)

create based on the value literal data

Parameters
NameTypeDescription
objObject

could be any type of the clr runtime object as the json value

method .ctor #
#ctor(Object, Boolean)

create based on the value literal data

Parameters
NameTypeDescription
objObject

could be any type of the clr runtime object as the json value

alreadyDecodedBoolean

when True the string value is already decoded (escape sequences resolved) and JsonValue.GetStripString() will return it as-is instead of re-decoding it.

method Literal #
Literal

get literal value

method Literal overload 2 #
Literal(Type, Boolean)

get literal value with type try cast action.

Parameters
NameTypeDescription
typeOfTType

-

decodeMetacharBoolean

-

method GetStripString #
GetStripString(Boolean, String)

处理转义等特殊字符串

Returns

this function will removes the warpping of quot symbol.

property IsLiteralNull #
IsLiteralNull

the literal value is nothing?

field _isRaw #
_isRaw

indicates if the stored string JsonValue.value is still a raw json literal (may contain escape sequences) and needs to be decoded by JsonValue.GetStripString(). Set to False when the value has already been decoded (e.g. during parsing).

property value #
value
property BSONValue #
BSONValue
property UnderlyingType #
UnderlyingType
property NULL #
NULL
property IsEmptyString #
IsEmptyString
method ToString #
ToString()
method op_Explicit #
op_Explicit(JsonValue)