Serialization in YAML using XStream in Java

Is there a YAML driver for the Java XStream package?

I already use XStream to serialize / deserialize both XML and JSON. I would like to be able to do the same with YAML.

+5
source share
4 answers

To parse a YAML document, you can use this chain: YAML → SnakeYAML → Java → Your application (-> XStream → XML)

Issuing YAML is easier and there are several options: 1) Your application → XStream with a custom Writer → YAML 2) Your application → SnakeYAML → YAML

The second option does not require additional development.

+2
source
+1

JYAML, . , , .

0

XStream XML, JSON, , , - Badgerfish.

Jackson 3; JSON, XML YAML, , ( XML Stax API)

0

All Articles