function checkResultErrors(result): { "error": Error; "path": (string | number)[]; }[]
Returns all errors found in a Result.Since certain errors encountered when creating a Result do not impact the ability to continue
parsing data, they are deferred until they are actually accessed. Hence a faulty string in an Event that is never
used does not impact the program flow.However, sometimes it may be useful to access, identify or validate correctness of a Result.