Adding better error output for JSON decoding errors