Log errors in JSON returned