Extension helpers for deal with the anonymous type
AnonymousJSONExtensions
01 Syntax
Microsoft.VisualBasic.Serialization.JSON.AnonymousJSONExtensions
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| GetJson | 4 | 专门针对字符串集合的 |
| KeysJson | 1 | Returns all of the keys in a dictionary in json format |
| AnonymousJSON | 1 | |
| KeysJson | 1 |
03 Members
GetJson(
IEnumerable(Of String), Boolean)get string array json
Remarks
专门为任意字符串集合所创建的json序列化方法,在这个函数之中会自动调用ToArray后再进行json序列化
Parameters
| Name | Type | Description |
|---|---|---|
array | IEnumerable(Of String) | a string collection, this function will convert this enumerable collection object as array and then serialize as json. |
indent | Boolean | - |
GetJson(
KeyCollection, Boolean)专门针对字符串集合的
Remarks
任意类型的字符串集合都会被首先转换为字符串数组然后再转换为json字符串
Parameters
| Name | Type | Description |
|---|---|---|
keys | KeyCollection | - |
indent | Boolean | - |
GetJson(
KeyCollection, Boolean)专门针对字符串集合的
Remarks
任意类型的字符串集合都会被首先转换为字符串数组然后再转换为json字符串
Parameters
| Name | Type | Description |
|---|---|---|
keys | KeyCollection | - |
indent | Boolean | - |
KeysJson``1(
Dictionary(Of String, ``0))Returns all of the keys in a dictionary in json format
Type Parameters
| Name | Description |
|---|---|
V |
Parameters
| Name | Type | Description |
|---|---|---|
d | Dictionary(Of String, ``0) | - |
GetJson(
String())AnonymousJSON(
T)KeysJson(
Dictionary(Of String, V))