This is to do with a previous post of mine ( Configurate & Polymorphism - #2 by HaedHutner ) which after going unanswered for a while, I’ve gotten more or less desperate for a solution.
I have a number of questions which I hope will allow me to create a reliable link between Configurate and Gson, allowing me to use Gson’s RuntimeTypeAdapterFactory as a solution to the problem I described in that thread.
-
Is there a common interface which is implemented by all classes which are serializable via Configurate?
-
How does one take a Json ConfigurationNode and turn it into a String?
2.1. Bonus points for the ability to just straight up turn it into a JsonElement for use with Gson -
What about the reverse? Is there a way to turn a Json string into a ConfigurationNode?
I would appreciate any answer to these questions. I have been rummaging through the documentation and the code, and I have been unable to find anything. Please and thank you.