The YML Adaptor is a means for mapping ObjectScript objects (registered, serial or persistent) to YAML text or dynamic entities. When a class extends YmlAdaptor it will be able to:
YMLExport() serializes a YAML enabled class as a YMAL document and writes it to the current device.
YMLExportToStream() serializes a YAML enabled class as a YAML document and writes it to a stream.
YMLExportToString() serializes a YAML enabled class as a YAML document and returns it as a string.
YMLImport() imports either YAML as a string or stream, and returns an instance of the YAML enabled class.
Thank you for submitting the idea.
This idea was implemented by Developer Community member(s). Please check the solution in the comments.
@Guest thank you for the implementation of this idea!
🖥 Download the app here: yaml-adaptor