Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f9ef032

Browse filesBrowse files
-->
1 parent 9115ada commit f9ef032
Copy full SHA for f9ef032

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Open diff view settings
Collapse file

‎JSONML.java‎

Copy file name to clipboardExpand all lines: JSONML.java
+4-2Lines changed: 4 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.