Class JSONparser
- Namespace
- PolarStudioGlobals
- Assembly
- PolarStudioGlobals.dll
The JSONparser parses a string and returns a collection or dictionary of elements.
public static class JSONparser
- Inheritance
-
JSONparser
- Inherited Members
Methods
ParseJSON(string)
The JSONparser parses a string and returns a collection or dictionary of elements.
public static object ParseJSON(string pJSONstring)
Parameters
pJSONstring
stringThe JSON to parse. MUST start with a '[' or '{' character. May contain comments. Will not parse dates.
Returns
- object
A collection or dictionary. In case of failure, Nothing is returned.
ParseJSON(string, ref string)
The JSONparser parses a string and returns a collection or dictionary of elements.
public static object ParseJSON(string pJSONstring, ref string pError)
Parameters
pJSONstring
stringThe JSON to parse. MUST start with a '[' or '{' character. May contain comments. Will not parse dates.
pError
stringThis by-ref string will contain a parse error if applicable.
Returns
- object
A collection or dictionary. In case of failure, Nothing is returned.
StringToDate(string)
This helper parses a date formatted as 'YYYYMMDDHHMMSS' string.
public static DateTime StringToDate(string pDateString)
Parameters
pDateString
stringThe date-string to parse.