Creates an Extractor useful as a paramter of JsonAccess.jsonAsType or jsonGetType. The returned extractor, applied to some unknown data tries returns either the union type or a JsonAccessError.
Extractor
unknown
JsonAccessError
Creates an
Extractoruseful as a paramter of JsonAccess.jsonAsType or jsonGetType. The returned extractor, applied to someunknowndata tries returns either the union type or aJsonAccessError.