@@ -28,7 +28,7 @@ Include the following in your `pom.xml` for Maven:
28
28
<dependency>
29
29
<groupId>com.github.javadev</groupId>
30
30
<artifactId>underscore17</artifactId>
31
- <version>1.44 </version>
31
+ <version>1.45 </version>
32
32
</dependency>
33
33
...
34
34
</dependencies>
@@ -37,7 +37,7 @@ Include the following in your `pom.xml` for Maven:
37
37
Gradle:
38
38
39
39
``` groovy
40
- implementation 'com.github.javadev:underscore17:1.44 '
40
+ implementation 'com.github.javadev:underscore17:1.45 '
41
41
```
42
42
43
43
### Usage
@@ -83,16 +83,16 @@ U.formatJson("{\"a\":{\"b\":\"data\"}}", Json.JsonStringBuilder.Step.TWO_SPACES)
83
83
// }
84
84
85
85
U . xmlToJson(
86
- " <mydocument has=\" an attribute\" >\n "
87
- + " <and>\n "
88
- + " <many>elements</many>\n "
89
- + " <many>more elements</many>\n "
90
- + " </and>\n "
91
- + " <plus a=\" complex\" >\n "
92
- + " element as well\n "
93
- + " </plus>\n "
94
- + " </mydocument>" ,
95
- Json . JsonStringBuilder . Step . TWO_SPACES );
86
+ " <mydocument has=\" an attribute\" >\n "
87
+ + " <and>\n "
88
+ + " <many>elements</many>\n "
89
+ + " <many>more elements</many>\n "
90
+ + " </and>\n "
91
+ + " <plus a=\" complex\" >\n "
92
+ + " element as well\n "
93
+ + " </plus>\n "
94
+ + " </mydocument>" ,
95
+ Json . JsonStringBuilder . Step . TWO_SPACES );
96
96
// {
97
97
// "mydocument": {
98
98
// "-has": "an attribute",
@@ -111,23 +111,23 @@ U.xmlToJson(
111
111
// }
112
112
113
113
U . jsonToXml(
114
- " {\n "
115
- + " \" mydocument\" : {\n "
116
- + " \" -has\" : \" an attribute\" ,\n "
117
- + " \" and\" : {\n "
118
- + " \" many\" : [\n "
119
- + " \" elements\" ,\n "
120
- + " \" more elements\"\n "
121
- + " ]\n "
122
- + " },\n "
123
- + " \" plus\" : {\n "
124
- + " \" -a\" : \" complex\" ,\n "
125
- + " \" #text\" : \"\\ n element as well\\ n \"\n "
126
- + " }\n "
127
- + " },\n "
128
- + " \" #omit-xml-declaration\" : \" yes\"\n "
129
- + " }" ,
130
- Xml . XmlStringBuilder . Step . TWO_SPACES );
114
+ " {\n "
115
+ + " \" mydocument\" : {\n "
116
+ + " \" -has\" : \" an attribute\" ,\n "
117
+ + " \" and\" : {\n "
118
+ + " \" many\" : [\n "
119
+ + " \" elements\" ,\n "
120
+ + " \" more elements\"\n "
121
+ + " ]\n "
122
+ + " },\n "
123
+ + " \" plus\" : {\n "
124
+ + " \" -a\" : \" complex\" ,\n "
125
+ + " \" #text\" : \"\\ n element as well\\ n \"\n "
126
+ + " }\n "
127
+ + " },\n "
128
+ + " \" #omit-xml-declaration\" : \" yes\"\n "
129
+ + " }" ,
130
+ Xml . XmlStringBuilder . Step . TWO_SPACES );
131
131
// <mydocument has="an attribute">
132
132
// <and>
133
133
// <many>elements</many>
0 commit comments