File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Open diff view settings
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Open diff view settings
Original file line number Diff line number Diff 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 */
3738public 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 () == '[' ) {
You can’t perform that action at this time.
0 commit comments