Y
Hacker News
new
|
ask
|
show
|
jobs
by
nomel
285 days ago
For the missing case, whenever I use json, I always start with a sane default struct, then overwrite those with the externally provided values. If a field is missing, it will be handled reasonably.