You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by fm...@apache.org on 2008/04/04 20:48:16 UTC

svn commit: r644819 - /incubator/sling/trunk/commons/json/src/main/java/org/apache/sling/commons/json/jcr/JsonItemWriter.java

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);