# \[Pitch\] JSONDecoder.nullDecodingStrategy

**URL:** <https://forums.swift.org/t/pitch-jsondecoder-nulldecodingstrategy/13980>\
**Category:** Pitches\
**Tags:** codable, json, optional\
**Created:** [June 25, 2018, 8:17pm UTC](https://forums.swift.org/t/pitch-jsondecoder-nulldecodingstrategy/13980 "2018-06-25T20:17:11Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![swhitty](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/swhitty/32/10082_2.png) [@swhitty](https://forums.swift.org/u/swhitty)\
**Post date:** [November 15, 2024, 7:04pm UTC](https://forums.swift.org/t/pitch-jsondecoder-nulldecodingstrategy/13980/12 "2024-11-15T19:04:27Z")

</div>

> [@tera](#):
>
> this fails to decode json with absent key:

An extension on `KeyedDecodingContainer` is required to decode wrapped or custom optional types.

I use [this property wrapper technique](https://forums.swift.org/t/propertywrapper-decoding-behaviour/61076/2).

---

_[View the full topic](https://forums.swift.org/t/pitch-jsondecoder-nulldecodingstrategy/13980)._
