Hi,
Is there a way to tell yamlbeans not to add fields that has null values?
Eg:
public class Person {
private String name;
private int age;
private String address;
public Person() {
}
//getters and setters
}
If the object is
Person p = new Person();
p.setName("aaa");
p.setAge(50);
Then the resultant yaml is like this,
name: aaa
address:
age: 50
The question is,
Is there a way to avoid "address:" being added in output?
Regards,
Prasanna.