JSONTextParser
01 Syntax
Microsoft.VisualBasic.MIME.application.json.JSONTextParser
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| ParseJson | 1 | Parse json string |
| AsString | 1 | try cast of the json element object as json literal value |
| AsStringVector | 1 | this function auto encode the scalar value to array data |
| JsonEscape | 1 | Minimal JSON string escaper. |
| ParseJsonFile | 1 | |
| CreateJsObject | 1 |
03 Members
ParseJson(
String, Boolean)Parse json string
Parameters
| Name | Type | Description |
|---|---|---|
JsonStr | String | - |
AsString(JsonElement,
Boolean)try cast of the json element object as json literal value
Parameters
| Name | Type | Description |
|---|---|---|
obj | JsonElement | - |
Returns
nothing will be returns if the target obj is not a JsonValue type.
the first not-null value will be returns if the input data is an array.
AsStringVector(JsonElement,
Boolean)this function auto encode the scalar value to array data
Parameters
| Name | Type | Description |
|---|---|---|
array | JsonElement | should be json array or json literal value |
decodeMetachar | Boolean | - |
JsonEscape(
String)Minimal JSON string escaper. We avoid pulling in System.Web.Script or Newtonsoft.Json just for this one purpose.
ParseJsonFile(
String, Boolean)CreateJsObject(JsonObject)