Add support for Optional<T> in parsing instead of null
Open
enhancement
java8
- Dominant language
- Java
- Stars
- 24.2k
- Forks
- 4.5k
- Avg merge
- 6d 4h
- Merged PRs (30d)
- 12
Description
# Problem solved by the feature
Often when parsing their is the risk of null exceptions and more importantly it is hard to document a field being optional through the type signature.
# Feature description
This feature would support using Optional for fields where if GSON cannot find the key it would give the none variant.
Contributor guide
Assessment
This issue has not been assessed yet.