The following functions are available globally.

  • A shortcut method to parse and apply a json logic rule. If you need to apply the same rule to multiple json data, it is more efficient to instantiate a JsonLogic class that will cache and reuse the parsed rule.



    public func applyRule<T>(_ jsonRule: String, to jsonDataOrNil: String? = nil) throws -> T