Extensions
The following extensions are available globally.
-
Adds MapKey support to a
String. The string will be parsed into a MapKey by pulling out all key parts in the string. Key parts are seperated using..For example, the string
first.second[].thirdwill be converted to the following key parts: 1KeyPart.object("first")2KeyPart.array("second")3KeyPart.object("third")This key can be used to return the value
My Value
, fromthirdin the following JSON dictionary:{ "first": { "second": [ { "third": "My Value" } ] } }Using this key when storing a value in the map will, on the other hand create the above dictionary.
See moreDeclaration
Swift
struct String
-
Declaration
Swift
struct Array<Element> : _DestructorSafeContainer
View on GitHub
Extensions Reference