Dictionary/Array equivalent in javascript
JsonObject
01 Syntax
Microsoft.VisualBasic.MIME.application.json.Javascript.JsonObject
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Add | 1 | |
| GetCommentText | 1 | get comment string about the associated property key, used for generates the Hjson style json output. |
| WriteBuffer | 1 | write bson buffer |
| HasObjectKey | 1 | Does the current json object has the required object member? |
| CreateObject | 1 | 反序列化为目标类型的对象实例 |
| CreateObject | 1 | Create clr object from this json object |
| Create | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| ObjectKeys | 1 | get all member names in current json object |
| isArray | 1 | Does all of the member names in current json object is a number[array schema]? |
| UnderlyingType | 1 | try to measure of the array base element type |
04 Members
Add(
String, Object, String)Parameters
| Name | Type | Description |
|---|---|---|
key | String | - |
value | Object | .NET clr runtime value, this parameter value should be a literal constant |
GetCommentText(
String)get comment string about the associated property key, used for generates the Hjson style json output.
Parameters
| Name | Type | Description |
|---|---|---|
key | String | - |
Returns
returns nothing if missing comment data
WriteBuffer(
FileStream)write bson buffer
Parameters
| Name | Type | Description |
|---|---|---|
buffer | FileStream | - |
HasObjectKey(
String)Does the current json object has the required object member?
Parameters
| Name | Type | Description |
|---|---|---|
key | String | the object member name |
CreateObject``1(
Boolean)反序列化为目标类型的对象实例
Type Parameters
| Name | Description |
|---|---|
T |
CreateObject(
Type, Boolean)Create clr object from this json object
Parameters
| Name | Type | Description |
|---|---|---|
type | Type | - |
decodeMetachar | Boolean | - |
Create``1(
``0)Parameters
| Name | Type | Description |
|---|---|---|
obj | ``0 | - |
ObjectKeys
get all member names in current json object
isArray
Does all of the member names in current json object is a number[array schema]?
UnderlyingType
try to measure of the array base element type