Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
The classes `JsonSlurper`, `YamlSlurper` and `XmlSlurper` allow the parsing of the content of a file object specified as `File` object, however, it's missing a `parse` method taking the [Path|https://docs.oracle.com/javase/8/docs/api/java/nio/file/Paths.html] interface as a argument.
As a workaround, it's possible to convert a `File` to a `Path` using the `toPath()` method however this does not fully support the new API features, notably the ability to reference and therefore access foreign files e.g. non-local files such as in-memory, S3, etc.