Table of Contents

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 string

The 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 string

The JSON to parse. MUST start with a '[' or '{' character. May contain comments. Will not parse dates.

pError string

This 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 string

The date-string to parse.

Returns

DateTime