abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r580516 - /incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONUtil.java
Date Fri, 28 Sep 2007 23:38:20 GMT
Author: jmsnell
Date: Fri Sep 28 16:38:19 2007
New Revision: 580516

URL: http://svn.apache.org/viewvc?rev=580516&view=rev
Log:
additional minor tweaks to json output

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=580516&r1=580515&r2=580516&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
Fri Sep 28 16:38:19 2007
@@ -128,11 +128,9 @@
           jstream.writeField("value",content.getValue());
           break;
         case HTML:
-          jstream.writeField("type","html");
           jstream.writeField("value",content.getValue());
           break;
         case XHTML:
-          jstream.writeField("type","xhtml");
           jstream.writeField("value",content.getValue());
           writeElementValue((Div)content.getValueElement(), jstream);
           break;
@@ -220,11 +218,9 @@
           jstream.writeField("value",text.getValue());
           break;
         case HTML:
-          jstream.writeField("type","html");
           jstream.writeField("value",text.getValue());
           break;
         case XHTML:
-          jstream.writeField("type","xhtml");
           jstream.writeField("value",text.getValue());
           writeElementValue(text.getValueElement(), jstream);
           break;
@@ -250,7 +246,7 @@
     Element element, 
     JSONStream jstream) 
       throws IOException {
-    jstream.writeField("valuehash");
+    jstream.writeField("hash");
     writeElementChildren(element, jstream);
   }
 
@@ -412,7 +408,6 @@
     jstream.writeField("language", document.getLanguage());
     jstream.writeField("slug", document.getSlug());
     jstream.writeField("last-modified", document.getLastModified());
-    jstream.writeField("whitespace", "false");
     
     Element root = document.getRoot();
     if (root != null) {



Mime
View raw message