A* Pathfinding Project  4.1.14
The A* Pathfinding Project for Unity 3D
TinyJsonDeserializer Class Reference

A very tiny json deserializer. More...

Detailed Description

A very tiny json deserializer.

It is not supposed to have lots of features, it is only intended to be able to deserialize graph settings well enough. Not much validation of the input is done.

Static Public Member Functions

static System.Object Deserialize (string text, Type type, System.Object populate=null)
 Deserializes an object of the specified type. More...
 

Private Member Functions

System.Object Deserialize (Type tp, System.Object populate=null)
 Deserializes an object of type tp. More...
 
UnityEngine.Object DeserializeUnityObject ()
 
UnityEngine.Object DeserializeUnityObjectInner ()
 
void Eat (string s)
 
string EatField ()
 
string EatUntil (string c, bool inString)
 
void EatWhitespace ()
 
void SkipFieldData ()
 
bool TryEat (char c)
 

Private Attributes

System.Text.StringBuilder builder = new System.Text.StringBuilder()
 
System.IO.TextReader reader
 

Static Private Attributes

static readonly System.Globalization.NumberFormatInfo numberFormat = System.Globalization.NumberFormatInfo.InvariantInfo
 

Member Function Documentation

◆ Deserialize() [1/2]

static System.Object Deserialize ( string  text,
Type  type,
System.Object  populate = null 
)
static

Deserializes an object of the specified type.

Will load all fields into the populate object if it is set (only works for classes).

◆ Deserialize() [2/2]

System.Object Deserialize ( Type  tp,
System.Object  populate = null 
)
private

Deserializes an object of type tp.

Will load all fields into the populate object if it is set (only works for classes).

◆ DeserializeUnityObject()

UnityEngine.Object DeserializeUnityObject ( )
private

◆ DeserializeUnityObjectInner()

UnityEngine.Object DeserializeUnityObjectInner ( )
private

◆ Eat()

void Eat ( string  s)
private

◆ EatField()

string EatField ( )
private

◆ EatUntil()

string EatUntil ( string  c,
bool  inString 
)
private

◆ EatWhitespace()

void EatWhitespace ( )
private

◆ SkipFieldData()

void SkipFieldData ( )
private

◆ TryEat()

bool TryEat ( char  c)
private

Member Data Documentation

◆ builder

System.Text.StringBuilder builder = new System.Text.StringBuilder()
private

◆ numberFormat

readonly System.Globalization.NumberFormatInfo numberFormat = System.Globalization.NumberFormatInfo.InvariantInfo
staticprivate

◆ reader

System.IO.TextReader reader
private

The documentation for this class was generated from the following file: