Table of Contents

Class JsonData.Null

Namespace
PAC.Json

Represents a null value in JSON data.

public class JsonData.Null : JsonData
Inheritance
JsonData.Null
Implements
Inherited Members

Constructors

Null()

public Null()

Methods

Parse(TextReader, bool)

Reads the TextReader, starting at the given index, and attempts to parse it as JsonData.Null. If successful, the last read character will be the last character of the parsed JSON.

public static JsonData.Null Parse(TextReader reader, bool mustReadAll)

Parameters

reader TextReader
mustReadAll bool

If true, it will check that all the data in the reader was used when parsing. Setting this to false is useful for parsing JSON data inside a list or object.

Returns

JsonData.Null

Parse(string)

Attempts to parse the string as JsonData.Null.

public static JsonData.Null Parse(string str)

Parameters

str string

Returns

JsonData.Null

Parse(string, ref int)

Reads the string, starting at the given index, and attempts to parse the string as JsonData.Null. If successful, the index will be moved to the last character of the null.

public static JsonData.Null Parse(string str, ref int index)

Parameters

str string
index int

Returns

JsonData.Null

ToJsonString(bool)

Converts it into a string in JSON format.

public string ToJsonString(bool pretty)

Parameters

pretty bool

If true, puts the string into pretty form - e.g. with indentations.

Returns

string

Operators

implicit operator List(Null)

public static implicit operator JsonData.List(JsonData.Null jsonNull)

Parameters

jsonNull JsonData.Null

Returns

JsonData.List

implicit operator Object(Null)

public static implicit operator JsonData.Object(JsonData.Null jsonNull)

Parameters

jsonNull JsonData.Null

Returns

JsonData.Object

implicit operator string(Null)

public static implicit operator string(JsonData.Null jsonNull)

Parameters

jsonNull JsonData.Null

Returns

string