Post

Replies

Boosts

Views

Activity

Comment on "codeModel" is leaked when transforming `CapturedStructure` into JSON.
Hey @Brent185 , CapturedStructure conforms to Codable (i.e., Encodable Decodable), meaning that it can be transformed into JSON as follows: let encoder = JSONEncoder() do { let data = try encoder.encode(data) let model = String(data: data, encoding: .utf8)! }catch { msg = "Could not encode" // ... do something about it }
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’23