JsonForJsonLogic
public enum JsonForJsonLogic : Equatable
extension JsonForJsonLogic: Comparable
extension JsonForJsonLogic: Hashable
extension JsonForJsonLogic: ExpressibleByIntegerLiteral, ExpressibleByArrayLiteral, ExpressibleByBooleanLiteral,
ExpressibleByNilLiteral, ExpressibleByStringLiteral, ExpressibleByDictionaryLiteral,
ExpressibleByFloatLiteral
Undocumented
-
Undocumented
Declaration
Swift
case Null -
Undocumented
Declaration
Swift
case Array([JsonForJsonLogic]) -
Undocumented
Declaration
Swift
case Dictionary([String : JsonForJsonLogic]) -
Undocumented
Declaration
Swift
case Int(Int64) -
Undocumented
Declaration
Swift
case Double(Double) -
Undocumented
Declaration
Swift
case String(String) -
Undocumented
Declaration
Swift
case Bool(Bool) -
Undocumented
Declaration
Swift
case Error(JsonForJsonLogic2Error) -
Undocumented
See moreDeclaration
Swift
public enum ContentType -
Undocumented
Declaration
Swift
public var type: ContentType { get } -
Undocumented
See moreDeclaration
Swift
public enum JsonForJsonLogic2Error : Error, Equatable, Hashable -
Undocumented
Declaration
Swift
public init() -
Undocumented
Declaration
Swift
public init(_ array: [JsonForJsonLogic]) -
Undocumented
Declaration
Swift
public init(_ dictionary: [String : JsonForJsonLogic]) -
Undocumented
Declaration
Swift
public init(_ json: Any?) -
Undocumented
Declaration
Swift
public init(_ data: Data) -
Undocumented
Declaration
Swift
public init?(string: String, encoding: String.Encoding = .utf8) -
Undocumented
Declaration
Swift
public static func === (lhs: JsonForJsonLogic, rhs: JsonForJsonLogic) -> Bool -
Undocumented
Declaration
Swift
public static func !== (lhs: JsonForJsonLogic, rhs: JsonForJsonLogic) -> Bool -
Declaration
Swift
public static func == (lhs: JsonForJsonLogic, rhs: JsonForJsonLogic) -> Bool -
Undocumented
Declaration
Swift
public static func + (lhs: JsonForJsonLogic, rhs: JsonForJsonLogic) -> JsonForJsonLogic -
Undocumented
Declaration
Swift
public prefix static func - (json: JsonForJsonLogic) -> JsonForJsonLogic -
Undocumented
Declaration
Swift
public static func - (lhs: JsonForJsonLogic, rhs: JsonForJsonLogic) -> JsonForJsonLogic -
Undocumented
Declaration
Swift
public static func * (lhs: JsonForJsonLogic, rhs: JsonForJsonLogic) -> JsonForJsonLogic -
Undocumented
Declaration
Swift
public static func / (lhs: JsonForJsonLogic, rhs: JsonForJsonLogic) -> JsonForJsonLogic -
Undocumented
Declaration
Swift
public static func % (lhs: JsonForJsonLogic, rhs: JsonForJsonLogic) -> JsonForJsonLogic -
Undocumented
Declaration
Swift
public var bool: Bool? { get } -
Undocumented
Declaration
Swift
public var int: Int64? { get } -
Undocumented
Declaration
Swift
public var double: Double? { get } -
Undocumented
Declaration
Swift
public var string: String? { get } -
Undocumented
Declaration
Swift
public var array: [JsonForJsonLogic]? { get } -
Undocumented
Declaration
Swift
public var dictionary: [String : JsonForJsonLogic]? { get } -
Declaration
Swift
public static func < (lhs: JsonForJsonLogic, rhs: JsonForJsonLogic) -> Bool -
Declaration
Swift
public static func > (lhs: JsonForJsonLogic, rhs: JsonForJsonLogic) -> Bool -
Declaration
Swift
public static func >= (lhs: JsonForJsonLogic, rhs: JsonForJsonLogic) -> Bool -
Declaration
Swift
public static func <= (lhs: JsonForJsonLogic, rhs: JsonForJsonLogic) -> Bool -
Declaration
Swift
public init(stringLiteral value: String) -
Declaration
Swift
public init(nilLiteral: ()) -
Declaration
Swift
public init(arrayLiteral elements: Int...) -
Declaration
Swift
public init(booleanLiteral value: BooleanLiteralType) -
Declaration
Swift
public init(dictionaryLiteral value: (Swift.String, JsonForJsonLogic)...) -
Declaration
Swift
public init(integerLiteral value: IntegerLiteralType) -
Declaration
Swift
public init(floatLiteral value: Double) -
If the JsonForJsonLogic element is of type .Array, this will return/set the idx element. Trying to set an value to an non .Array type will result in runtime error.
Declaration
Swift
public subscript(idx: Int) -> JsonForJsonLogic { get set } -
If the JsonForJsonLogic element is of type .Dictionary, this will return/set a element by it’s key. Trying to set an value to an non .Dictionary type will result in runtime error.
Declaration
Swift
public subscript(key: Key) -> JsonForJsonLogic { get set } -
Evaluates the truth value of the JsonForJsonLogic object according to the json logic.
Declaration
Swift
public func truthy() -> BoolReturn Value
the truth value of the JsonForJsonLogic object
-
Tries to convert the current JsonForJsonLogic to a number.
Declaration
Swift
public func toNumber() -> JsonForJsonLogicReturn Value
a converted JsonForJsonLogic number value (either .Double or .Int) or .Null if it fails
View on GitHub
JsonForJsonLogic Enumeration Reference