public class MockUser {
public String name;
public String sex;
}
MockUser user = new MockUser();
user.name = "";
user.sex = "man";
YamlWriter writer = new YamlWriter(new FileWriter("/tmp/output.yml"));
writer.write(user);
writer.close();
----
dashwang@MBP ~# cat /tmp/output.yml
name: sex: man
But what I want is:
name: ""
sex: man
---
When I use C++ yaml-cpp library to parse /tmp/output.yml, I got bad conversion exception.
I wonder whether YamlBeans's output is YAML standard or not.
--
--
You received this message because you are subscribed to the "yamlbeans-users" group:
http://groups.google.com/group/yamlbeans-users
---
You received this message because you are subscribed to the Google Groups "yamlbeans-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yamlbeans-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to yamlbeans-use...@googlegroups.com.