Hi, I’m using Swift with CB Lite. I’m actually new to both. I’m looking for best practices on serialize/de-serialize between strongly typed Swift objects and CB ResultSet/Result which appear to be standard Dictionary objects.
This problem isn’t unique to Swift, but I’m interested if anyone else is using Swift and how they’re addressing the issue. It appears one must write their own converters for
Result objects, but even that requires some introspection, which I suspect one would have the context based on the query executed.
The post was dated a year ago. I’m interested to hear if there has been any other new thinking or progress on this?
If JSON strings were exposed, it would be trivial to serialize/de-serialize, but I get the fact that this is not how the data is stored…but some assistance on how to convert between totally generic objects/dictionaries in a strongly typed language would be interesting to hear.
I’m interested to know if there’s anything out there like this for Swift yet: https://blog.couchbase.com/couchbase-lite-mapping/ (or maybe I will have to write it