A* Pathfinding Project  3.8.12
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
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.
 

Private Member Functions

System.Object Deserialize (Type tp, System.Object populate=null)
 Deserializes an object of type tp.
 
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

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).

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).

UnityEngine.Object DeserializeUnityObject ( )
private
UnityEngine.Object DeserializeUnityObjectInner ( )
private
void Eat ( string  s)
private
string EatField ( )
private
string EatUntil ( string  c,
bool  inString 
)
private
void EatWhitespace ( )
private
void SkipFieldData ( )
private
bool TryEat ( char  c)
private

Member Data Documentation

System.Text.StringBuilder builder = new System.Text.StringBuilder()
private
readonly System.Globalization.NumberFormatInfo numberFormat = System.Globalization.NumberFormatInfo.InvariantInfo
staticprivate
System.IO.TextReader reader
private

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