[#62] Clean-up, add method for JSON errors.