diff --git a/Sources/Operators.swift b/Sources/Operators.swift index f2a4b75..d7232b3 100644 --- a/Sources/Operators.swift +++ b/Sources/Operators.swift @@ -49,6 +49,12 @@ public func <| (dictionary: MarshaledObject, key: String) t public func <| (dictionary: MarshaledObject, key: String) throws -> JSONObject { return try dictionary.value(for: key) } +public func <| (dictionary: MarshaledObject, key: String) throws -> JSONObject? { + return try dictionary.value(for: key) +} public func <| (dictionary: MarshaledObject, key: String) throws -> [JSONObject] { return try dictionary.value(for: key) } +public func <| (dictionary: MarshaledObject, key: String) throws -> [JSONObject]? { + return try dictionary.value(for: key) +}