I am trying to serialize an object which holds an instance of java.nio.file.Path
and since path
is an interface I am receiving a StackOverflow Exception
I have checked this answer: https://stackoverflow.com/a/36966590/11325201
and wanted to implement a type adapter for my use case in groovy
but I didn't find JsonBuilder
's equivalent of GsonBuilder
's registerTypeAdapter
or registerTypeHierarchyAdapter
How can I achieve a similar solution in Groovy?