4 ms·
My most hated checked exception is the IOException Jackson throws when parsing JSON I can guarantee to be valid JSON. I could live with a runtime exception, or
by EdwardDiego 7y ago
My most hated checked exception is the IOException Jackson throws when parsing JSON I can guarantee to be valid JSON.
I could live with a runtime exception, or perhaps an API that differentiates parsing "potentially not-parseable JSON" and "JSON I can vouch for".
- thomascgalvin 7y agoI usually end up writing a bunch of utility methods for stuff like this. Typically it's called something like `parseQuietly`, and it just Pokemons any exceptions.
- EdwardDiego 7y agoI am stealing Pokemon as a verb, my thanks.