Skip to content

Added strategies for decoding and encoding maps.

Choose a tag to compare

@tachyonics tachyonics released this 25 Oct 16:46
8c760e9

Add the ability to collapse and expand an XML structure that has explicit Key and Value tags-

<Result>
  <Tag>
    <Key>QueueType</Key>
    <Value>Production</Value>
  </Tag>
  <Tag>
    <Key>Owner</Key>
    <Value>Developer123</Value>
  </Tag>
</Result>

Decoded into or encoding from a structure like-

struct Result {
    let tags: [String: String]
}

Can also be combined with the collapsing/expanding ListDecodingStrategy where there is an outer element for the list of entries.