incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r644819 - /incubator/sling/trunk/commons/json/src/main/java/org/apache/sling/commons/json/jcr/JsonItemWriter.java
Date Fri, 04 Apr 2008 18:48:16 GMT
Author: fmeschbe
Date: Fri Apr  4 11:48:08 2008
New Revision: 644819

URL: http://svn.apache.org/viewvc?rev=644819&view=rev
Log:
Fix mistake introduced in Rev. 644750: Multivalued properties cause
the key to be written twice, which causes a JSONException to be thrown.

Modified:
    incubator/sling/trunk/commons/json/src/main/java/org/apache/sling/commons/json/jcr/JsonItemWriter.java

Modified: incubator/sling/trunk/commons/json/src/main/java/org/apache/sling/commons/json/jcr/JsonItemWriter.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/commons/json/src/main/java/org/apache/sling/commons/json/jcr/JsonItemWriter.java?rev=644819&r1=644818&r2=644819&view=diff
==============================================================================
--- incubator/sling/trunk/commons/json/src/main/java/org/apache/sling/commons/json/jcr/JsonItemWriter.java
(original)
+++ incubator/sling/trunk/commons/json/src/main/java/org/apache/sling/commons/json/jcr/JsonItemWriter.java
Fri Apr  4 11:48:08 2008
@@ -150,7 +150,6 @@
         if (!p.getDefinition().isMultiple()) {
             dumpValue(w, p.getValue());
         } else {
-            w.key(p.getName());
             w.array();
             for(Value v : p.getValues()) {
                 dumpValue(w, v);



Mime
View raw message