nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.MIME.application.json / JSONTextParser

JSONTextParser

Full name Microsoft.VisualBasic.MIME.application.json.JSONTextParser Assembly Microsoft.VisualBasic.MIME.application.json Members 5

01 Syntax

Microsoft.VisualBasic.MIME.application.json.JSONTextParser

02 Methods

NameOverloadsSummary
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

03 Members

method ParseJson #
ParseJson(String, Boolean)

Parse json string

Parameters
NameTypeDescription
JsonStrString

-

method AsString #
AsString(JsonElement, Boolean)

try cast of the json element object as json literal value

Parameters
NameTypeDescription
objJsonElement

-

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.

method AsStringVector #
AsStringVector(JsonElement, Boolean)

this function auto encode the scalar value to array data

Parameters
NameTypeDescription
arrayJsonElement

should be json array or json literal value

decodeMetacharBoolean

-

method JsonEscape #
JsonEscape(String)

Minimal JSON string escaper. We avoid pulling in System.Web.Script or Newtonsoft.Json just for this one purpose.

method ParseJsonFile #
ParseJsonFile(String, Boolean)