ilmoeuro / snakeyaml

Automatically exported from code.google.com/p/snakeyaml
0 stars 0 forks source link

Simplify dumping (serializing) of immutable objects #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Immutable objects are serialized by default as JavaBeans (as mappings).
This is inconvenient since they cannot be de-serialized (parsed) afterwards.
Currently it is necessary to write a custom Representer to dump immutable 
objects as sequences. It should be somehow simplified.

Original issue reported on code.google.com by py4fun@gmail.com on 17 Sep 2009 at 12:29

GoogleCodeExporter commented 9 years ago
a possible solution is here http://code.google.com/p/snakeyaml/wiki/
Documentation#Dumping_a_custom_YAML_document

Original comment by py4fun@gmail.com on 18 Nov 2009 at 2:55