@@ -28,7 +28,7 @@ Include the following in your `pom.xml` for Maven:
2828 <dependency>
2929 <groupId>com.github.javadev</groupId>
3030 <artifactId>underscore17</artifactId>
31- <version>1.44 </version>
31+ <version>1.45 </version>
3232 </dependency>
3333 ...
3434</dependencies>
@@ -37,7 +37,7 @@ Include the following in your `pom.xml` for Maven:
3737Gradle:
3838
3939``` groovy
40- implementation 'com.github.javadev:underscore17:1.44 '
40+ implementation 'com.github.javadev:underscore17:1.45 '
4141```
4242
4343### Usage
@@ -83,16 +83,16 @@ U.formatJson("{\"a\":{\"b\":\"data\"}}", Json.JsonStringBuilder.Step.TWO_SPACES)
8383 // }
8484
8585U . 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 );
9696 // {
9797 // "mydocument": {
9898 // "-has": "an attribute",
@@ -111,23 +111,23 @@ U.xmlToJson(
111111 // }
112112
113113U . 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 );
131131 // <mydocument has="an attribute">
132132 // <and>
133133 // <many>elements</many>
0 commit comments