Better error json output.