Legal Notice, Privacy Policy
Impressum, Datenschutzerklärung
Cerberus X Documentation
Class JsonValue
This base class provides some fall-back functionality for the specific json value More...
Declarations
Please note that only documented classes are listed here, there might be undocumented classes that extend this one.
Properties | |
Type : Int () |
Indicates the type of the specific JsonValue object. |
Detailed Discussion
This base class provides some fall-back functionality for the specific json value
classes.
Properties Documentation
Method Type : Int () Property
Indicates the type of the specific JsonValue object.
Type is one of the following:
Type | Meaning |
JsonValue.OBJECTTYPE | object is JsonObject |
JsonValue.ARRAYTYPE | object is JsonArray |
JsonValue.NULLTYPE | object is JsonNull |
JsonValue.BOOLTYPE | object is JsonBool |
JsonValue.NUMBERTYPE | object is JsonNumber |
JsonValue.STRINGTYPE | object is JsonString |
Methods Documentation
Method BoolValue : Bool ()
For a JsonBool, this will return its boolean value.
Otherwise, it throws a JsonError.
Method FloatValue : Float ()
For a JsonNumber, this will return its numerical value as float.
Otherwise, it throws a JsonError.
Method IntValue : Int ()
For a JsonNumber, this will return its numerical value as int.
Otherwise, it throws a JsonError.
Method StringValue : String ()
For a JsonString, this will return its string value.
Otherwise, it throws a JsonError.
Method ToJson : String ()
Converts value to a JSON string.