type any? has no subscript members

When you subscript profile with “Addresses”, you’re getting an Any instance back. Your choice to use Any to fit various types within the same array has caused type erasure to occur. You’ll need to cast the result back to its real type, [[String: Any]] so that it knows that the Any instance represents an Array. Then you’ll be able to subscript it: This is very … Read more