abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r620524 - /incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONUtil.java
Date Mon, 11 Feb 2008 16:50:29 GMT
Author: jmsnell
Date: Mon Feb 11 08:50:25 2008
New Revision: 620524

URL: http://svn.apache.org/viewvc?rev=620524&view=rev
Log:
per https://issues.apache.org/jira/browse/ABDERA-114

"The JSON serialization misses a coma when writing a tag child with mixed content (text-tag-text)."

Modified:
    incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONUtil.java

Modified: incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONUtil.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONUtil.java?rev=620524&r1=620523&r2=620524&view=diff
==============================================================================
--- incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONUtil.java
(original)
+++ incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONUtil.java
Mon Feb 11 08:50:25 2008
@@ -428,7 +428,7 @@
       Object child = children[n];
       if (child instanceof Element) {
         writeElement((Element)child, parentqname, jstream);
-        if (n < children.length-2) jstream.writeSeparator();
+        if (n < children.length-1) jstream.writeSeparator();
       } else if (child instanceof TextValue) {
         TextValue textvalue = (TextValue) child;
         String value = textvalue.getText();



Mime
View raw message