Skip to content

Commit 5e00dca

Browse files
authored
Update README.md
1 parent 3bc75dd commit 5e00dca

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ U.chain(1, 2, 3) // or java.util.Arrays.asList(1, 2, 3) or new Integer[] {1, 2,
6060
// 4, 3
6161
.forEach(System.out::println);
6262
// 4, 3
63-
63+
6464
U.formatXml("<a><b>data</b></a>");
6565
// <a>
6666
// <b>data</b>
@@ -72,6 +72,20 @@ U.formatJson("{\"a\":{\"b\":\"data\"}}");
7272
// "b": "data"
7373
// }
7474
// }
75+
76+
U.xmlToJson("<a><b>data</b></a>");
77+
// {
78+
// "a": {
79+
// "b": "data"
80+
// },
81+
// "#omit-xml-declaration": "yes"
82+
// }
83+
84+
U.jsonToXml("{\"a\":{\"b\":\"data\"}}");
85+
// <?xml version="1.0" encoding="UTF-8"?>
86+
// <a>
87+
// <b>data</b>
88+
// </a>
7589
```
7690

7791
In addition to porting Underscore's functionality, Underscore-java includes matching unit tests.

0 commit comments

Comments
 (0)