3 ms·
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 mi
by nomel 1y 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.