C# Class IronJSON.JSONManager

Loads/reads/modifies/saves JSON objects.
Show file Open project: jabb/IronJSON Class Usage Examples

Public Methods

Method Description
ArraySize ( object key ) : int

CanCdTo ( object key ) : bool

Cd ( Path path ) : void

CdBack ( ) : void

CdBack ( int times ) : void

Exists ( object key ) : bool
GetBooleanFrom ( object key ) : bool

GetFloatFrom ( object key ) : double

GetIntegerFrom ( object key ) : long

GetStringFrom ( object key ) : string

IsArray ( object key ) : bool

IsBoolean ( object key ) : bool

IsCurrentArray ( ) : bool

IsCurrentObject ( ) : bool

IsFloat ( object key ) : bool

IsInteger ( object key ) : bool

IsNull ( object key ) : bool

IsObject ( object key ) : bool

IsString ( object key ) : bool

JSONManager ( ) : System

Constructs an empty JSON object.

JSONManager ( string filename ) : System

Opens a JSON file.

Open ( string filename ) : void

Opens a new file to be read. Overwrite the current JSON object.

ResizeArray ( object key, int to ) : void

Save ( string filename ) : void

Saves the current JSON object to file.

SetToArray ( object key, int size ) : void

SetToBoolean ( object key, bool b ) : void

SetToFloat ( object key, double f ) : void

SetToInteger ( object key, long i ) : void

SetToNull ( object key ) : void

SetToObject ( object key ) : void

SetToString ( object key, string str ) : void

ToString ( ) : string

Method Details

ArraySize() public method

public ArraySize ( object key ) : int
key object
return int

CanCdTo() public method

public CanCdTo ( object key ) : bool
key object /// A ///
return bool

Cd() public method

public Cd ( Path path ) : void
path System.IO.Path /// A ///
return void

CdBack() public method

public CdBack ( ) : void
return void

CdBack() public method

public CdBack ( int times ) : void
times int
return void

Exists() public method

public Exists ( object key ) : bool
key object
return bool

GetBooleanFrom() public method

public GetBooleanFrom ( object key ) : bool
key object /// A ///
return bool

GetFloatFrom() public method

public GetFloatFrom ( object key ) : double
key object /// A ///
return double

GetIntegerFrom() public method

public GetIntegerFrom ( object key ) : long
key object /// A ///
return long

GetStringFrom() public method

public GetStringFrom ( object key ) : string
key object /// A ///
return string

IsArray() public method

public IsArray ( object key ) : bool
key object /// A ///
return bool

IsBoolean() public method

public IsBoolean ( object key ) : bool
key object /// A ///
return bool

IsCurrentArray() public method

public IsCurrentArray ( ) : bool
return bool

IsCurrentObject() public method

public IsCurrentObject ( ) : bool
return bool

IsFloat() public method

public IsFloat ( object key ) : bool
key object /// A ///
return bool

IsInteger() public method

public IsInteger ( object key ) : bool
key object /// A ///
return bool

IsNull() public method

public IsNull ( object key ) : bool
key object /// A ///
return bool

IsObject() public method

public IsObject ( object key ) : bool
key object /// A ///
return bool

IsString() public method

public IsString ( object key ) : bool
key object /// A ///
return bool

JSONManager() public method

Constructs an empty JSON object.
public JSONManager ( ) : System
return System

JSONManager() public method

Opens a JSON file.
public JSONManager ( string filename ) : System
filename string /// A ///
return System

Open() public method

Opens a new file to be read. Overwrite the current JSON object.
public Open ( string filename ) : void
filename string
return void

ResizeArray() public method

public ResizeArray ( object key, int to ) : void
key object /// A ///
to int /// A ///
return void

Save() public method

Saves the current JSON object to file.
public Save ( string filename ) : void
filename string /// A ///
return void

SetToArray() public method

public SetToArray ( object key, int size ) : void
key object /// A ///
size int /// A ///
return void

SetToBoolean() public method

public SetToBoolean ( object key, bool b ) : void
key object /// A ///
b bool /// A ///
return void

SetToFloat() public method

public SetToFloat ( object key, double f ) : void
key object /// A ///
f double /// A ///
return void

SetToInteger() public method

public SetToInteger ( object key, long i ) : void
key object /// A ///
i long /// A ///
return void

SetToNull() public method

public SetToNull ( object key ) : void
key object /// A ///
return void

SetToObject() public method

public SetToObject ( object key ) : void
key object /// A ///
return void

SetToString() public method

public SetToString ( object key, string str ) : void
key object /// A ///
str string /// A ///
return void

ToString() public method

public ToString ( ) : string
return string