A json text parser module
JsonParser
01 Syntax
Microsoft.VisualBasic.MIME.application.json.JsonParser
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | |
| Open | 1 | parse a json file |
| OpenJSON | 1 | parse json text content |
| Parse | 1 | parse the text in json format |
| _parse | 1 | parse string and create JSON object |
| StripString | 1 | do string unescape |
| OpenStream | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| JSONvalue | 1 | The root node in json file |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| strictVectorSyntax | 1 | set this option to value false will enable syntax of array like: [1 2 3], without comma symbol as the element value delimiter! |
05 Members
#ctor(
String, Boolean)Parameters
| Name | Type | Description |
|---|---|---|
json_str | String | the json text content |
Open(
String, Boolean)parse a json file
Parameters
| Name | Type | Description |
|---|---|---|
file | String | a file path of the json data file |
OpenJSON
parse json text content
Returns
this function will returns nothing if the given json string is empty string or "null" literal.
Parse(
String, Boolean)parse the text in json format
Parameters
| Name | Type | Description |
|---|---|---|
json | String | text data in json string format |
Returns
this function will returns nothing if the given json string is empty string or "null" literal.
_parse
parse string and create JSON object
StripString(
String, Boolean)do string unescape
Parameters
| Name | Type | Description |
|---|---|---|
str | String | - |
decodeMetaChar | Boolean | - |
JSONvalue
The root node in json file
strictVectorSyntax
set this option to value false will enable syntax of array like: [1 2 3], without comma symbol as the element value delimiter!
OpenStream(
Stream, Boolean, Boolean)