Skip to content

Commit f9ef032

Browse files
-->
1 parent 9115ada commit f9ef032

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

JSONML.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ of this software and associated documentation files (the "Software"), to deal
3131
* This provides static methods to convert an XML text into a JSONArray or
3232
* JSONObject, and to covert a JSONArray or JSONObject into an XML text using
3333
* the JsonML transform.
34+
*
3435
* @author JSON.org
35-
* @version 2011-11-24
36+
* @version 2012-03-28
3637
*/
3738
public class JSONML {
3839

@@ -95,8 +96,9 @@ private static Object parse(
9596
if (c == '-') {
9697
if (x.next() == '-') {
9798
x.skipPast("-->");
99+
} else {
100+
x.back();
98101
}
99-
x.back();
100102
} else if (c == '[') {
101103
token = x.nextToken();
102104
if (token.equals("CDATA") && x.next() == '[') {

0 commit comments

Comments
 (0)