Object
JSONPrimitive
JSONPrimitive | Private constructor. |
BooleanValue | Returns the value as Boolean from the primitive |
DoubleValue | Returns the value as Double from the primitive |
IntegerValue | Returns the value as Integer (Int64) from the primitive |
IsArray | Returns true if the primitive contains Array. |
IsBoolean | Returns true if the primitive contains Boolean. |
IsDouble | Returns true if the primitive contains Double. |
IsFalse | Returns true if the primitive is false. |
IsInteger | Returns true if the primitive contains Integer value. |
IsNull | Returns true if the primitive contains null or nil. |
IsNumber | Returns true if the primitive contains number (can be Integer or Double) |
IsObject | Returns true if the primitive contains JSONObject (dictionary) |
IsString | Returns true if the primitive contains String. |
IsTrue | Returns true if the primitive is true. |
NumberValue | Returns the value as Double from the primitive, reading the value either from Integer or Double, not caring which one it is. |
StringValue | Returns the value as String from the primitive |
Type | Returns type code for the primitive. The type code can be any value from the JSONPrimitive.NodeTypeEnum. |
Clone | Makes a clone of the JSONPrimitive. |
shared FromBoolean | Constructs JSONPrimitive from a Boolean. |
shared FromDouble | Constructs JSONPrimitive from a Double. |
shared FromInteger | Constructs JSONPrimitive from a Integer. |
shared FromNil | Constructs JSONPrimitive from Nil. |
shared FromString | Constructs JSONPrimitive from a String. |
shared FromVariant | Generates JSON structure from a variant. |
GetSource | Generates JSON string from the JSON object model. All parameters of this function are optional. |
Operator_Compare | Comparison operator to compare two JSONPrimitives with the standard Xojo = operator. |
shared Parse | Parses JSON string. |
ToVariant | Attempts to convert the JSON structure to variant. Taking optional delegate to evaluate custom structures such as color and date which are not part of normal JSON standard. |
EvaluateStringDelegate (console safe) | Delegate to use with JSONPrimitive.ToVariant to evaluated custom structures which are not part of the JSON standard such as for example Date or Color. |
NodeTypeEnum | Enum representing types of primitive nodes. |