Extends: |
|
Constructors: |
- New ()
- New ( json:String )
- New ( data:StringMap<JsonValue> )
|
Methods: |
- Contains : Bool ( key:String )
- Get : JsonValue ( key:String, defval:JsonValue=null )
- GetBool : Int ( key:String, defval:Bool=false )
- GetData : StringMap<JsonValue> ()
- GetFloat : Float ( key:String, defval:Float=0 )
- GetInt : Int ( key:String, defval:Int=0 )
- GetString : String ( key:String, defval:String="" )
- PushJson : Void ( buf:StringStack )
- Set : Void ( key:String, value:JsonValue )
- SetBool : Void ( key:String, value:Bool )
- SetFloat : Void ( key:String, value:Float )
- SetInt : Void ( key:String, value:Int )
- SetString : Void ( key:String, value:String )
|
Inherited Methods: |
|
Method Contains : Bool ( key:String )
Returns true if the json object contains key.
Returns defval if key doesn't exist.
Returns a JsonNull object if key is mapped to null.
Method GetBool : Int ( key:String, defval:Bool=false )
Returns defval if key doesn't exist.
Throws a JsonError if value mapped to key is not a JsonBool.
Gets the internal map used to represent the object.
Method GetFloat : Float ( key:String, defval:Float=0 )
Returns defval if key doesn't exist.
Throws a JsonError if value mapped to key is not a JsonNumber.
Method GetInt : Int ( key:String, defval:Int=0 )
Returns defval if key doesn't exist.
Throws a JsonError if value mapped to key is not a JsonNumber.
Method GetString : String ( key:String, defval:String="" )
Returns defval if key doesn't exist.
Throws a JsonError if value mapped to key is not a JsonString.
Method Set : Void ( key:String, value:JsonValue )
Method SetBool : Void ( key:String, value:Bool )
Method SetFloat : Void ( key:String, value:Float )
Method SetInt : Void ( key:String, value:Int )
Method SetString : Void ( key:String, value:String )