# Move Combine's TopLevelEncoder and TopLevelDecoder protocols into the standard library

**URL:** <https://forums.swift.org/t/move-combines-toplevelencoder-and-topleveldecoder-protocols-into-the-standard-library/32494>\
**Category:** Pitches\
**Created:** [January 12, 2020, 5:17pm UTC](https://forums.swift.org/t/move-combines-toplevelencoder-and-topleveldecoder-protocols-into-the-standard-library/32494 "2020-01-12T17:17:38Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![Saklad5](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@Saklad5](https://forums.swift.org/u/Saklad5)\
**Post date:** [April 30, 2020, 9:29pm UTC](https://forums.swift.org/t/move-combines-toplevelencoder-and-topleveldecoder-protocols-into-the-standard-library/32494/20 "2020-04-30T21:29:36Z")

</div>

I just had to do this instead, and I never want to do it again:

```swift
Mirror(reflecting: decoder) // TopLevelDecoder
    .children
    .first { $0.label == "userInfo" }?
    .value as? [CodingUserInfoKey: Any]

```

---

_[View the full topic](https://forums.swift.org/t/move-combines-toplevelencoder-and-topleveldecoder-protocols-into-the-standard-library/32494)._
