Cleaning up JSON exception wrangling
Fixes #14