Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Swift
/
Codable
Which sequence preserves the distinction between an absent key and an explicit JSON null?
from Codable
Swift 6.3.3
intermediate
1 min
Which sequence preserves the distinction between an absent key and an explicit JSON null?
Check contains(_:), then decodeNil(forKey:), then decode(_:forKey:).
Call decodeIfPresent(_:forKey:) once and inspect whether the result is nil.
Give the Swift property a declaration default and use synthesized decoding.
Check
Ask AI about this kata
Report an error
previous kata
A transport model only consumes server responses and must never be emitted. Which conform…
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload