Is there any support for yaml & toml ?
Closed this issue · 1 comments
Is there any support for yaml & toml file formats?
Luigi:
Hi.
No. The internal structure of owner objects is kept as a java.util.Properties. So, mapping a json object, for instance, is possible with some limitation. I'm not very familiar with yaml o toml, but I think that if you can map yaml/toml/json/xml/anything to a Java Properties, then you just need to implement a Loader (see javadocs). Json itself is an object tree or graph, and same can be said about yaml and toml I suppose. Java Properties are simple key-value pair that can hardly map trees or graphs of objects, without strict limitations. But some basic support is possible without completely change owner internal structure, that was not originally designed to map objects or complex structures, but just configuration.
It is possible to add yaml json etc, and somebody actually sent me some pull requests about it. Changing current internal design to fully support these formats, would not be trivial, and can't be done anytime soon.
Regards.
Luigi