We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdf0eff commit 136e5d3Copy full SHA for 136e5d3
README.md
@@ -89,7 +89,9 @@ Serialization is done very similar to JSON serialization: all that needs to chan
89
```java
90
// Important: create XmlMapper; it will use proper factories, workarounds
91
ObjectMapper xmlMapper = new XmlMapper();
92
-String xml = xmlMapper.writeValue(new Simple());
+String xml = xmlMapper.writeValueAsString(new Simple());
93
+// or
94
+xmlMapper.writeValue(new File("/tmp/stuff.json"), new Simple());
95
```
96
97
and with POJO like:
0 commit comments