OZJSONValue
public enum OZJSONValue : Decodable, Equatable, Hashable, Sendable
Generic JSON value used to preserve arbitrary structures inside policy install parameters returned by the indexer.
The indexer returns install_params as an unbounded JSON value; the SDK never
inspects or rewrites it. Callers can introspect the case to recover specific
types or pass the value through to higher layers untouched.
-
Undocumented
Declaration
Swift
case string(String) -
Undocumented
Declaration
Swift
case integer(Int64) -
Undocumented
Declaration
Swift
case double(Double) -
Undocumented
Declaration
Swift
case bool(Bool) -
Undocumented
Declaration
Swift
case array([OZJSONValue]) -
Undocumented
Declaration
Swift
case object([String : OZJSONValue]) -
Undocumented
Declaration
Swift
case null -
Declaration
Swift
public init(from decoder: Decoder) throws -
Custom
Hashableimplementation.Required because
DictionaryisHashableonly when both itsKeyandValueareHashable; Swift cannot auto-synthesize the conformance when one of the enum cases carries a[String: OZJSONValue]payload. Each discriminant is combined into the hasher before its payload so values across different cases cannot collide on payload alone. The.objectcase sorts its keys before hashing so identical dictionaries hash to the same value regardless of insertion order.Declaration
Swift
public func hash(into hasher: inout Hasher)
View on GitHub
Install in Dash