Expose number of errors in JSON