The primitive value type in javascript.
JsonValue
00 Remarks
(请注意,假若是字符串的话,值是未经过处理的原始字符串,可能会含有转义字符, 则这个时候还需要使用JsonValue.GetStripString()得到最终的字符串)
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 2 | create based on the value literal data |
| Literal | 2 | get literal value |
| GetStripString | 1 | 处理转义等特殊字符串 |
| ToString | 1 | |
| op_Explicit | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| IsLiteralNull | 1 | the literal value is nothing? |
| value | 1 | |
| BSONValue | 1 | |
| UnderlyingType | 1 | |
| NULL | 1 | |
| IsEmptyString | 1 |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| _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
Object)create based on the value literal data
| Name | Type | Description |
|---|---|---|
obj | Object | could be any type of the clr runtime object as the json value |
Object, Boolean)create based on the value literal data
| Name | Type | Description |
|---|---|---|
obj | Object | could be any type of the clr runtime object as the json value |
alreadyDecoded | Boolean | when |
get literal value
Type, Boolean)get literal value with type try cast action.
| Name | Type | Description |
|---|---|---|
typeOfT | Type | - |
decodeMetachar | Boolean | - |
Boolean, String)处理转义等特殊字符串
this function will removes the warpping of quot symbol.
the literal value is nothing?
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).