You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@abdera.apache.org by jm...@apache.org on 2008/02/11 17:50:29 UTC
svn commit: r620524 -
/incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONUtil.java
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();