jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1142611 - /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/json/JsonBuilder.java
Date Mon, 04 Jul 2011 10:37:29 GMT
Author: thomasm
Date: Mon Jul  4 10:37:29 2011
New Revision: 1142611

URL: http://svn.apache.org/viewvc?rev=1142611&view=rev
Log:
Don't escape forward slash.

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/json/JsonBuilder.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/json/JsonBuilder.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/json/JsonBuilder.java?rev=1142611&r1=1142610&r2=1142611&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/json/JsonBuilder.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/json/JsonBuilder.java
Mon Jul  4 10:37:29 2011
@@ -273,13 +273,6 @@ public final class JsonBuilder {
                 case '\t':
                     sb.append("\\t");
                     break;
-                case '/':
-                    // TODO why escape a slash? better not, so we can use the
-                    // data type hack described here:
-                    // http://weblogs.asp.net/bleroy/archive/2008/01/18/dates-and-json.aspx
-                    // http://stackoverflow.com/questions/206384/how-to-format-a-json-date
-                    sb.append("\\/");
-                    break;
                 default:
                     //Reference: http://www.unicode.org/versions/Unicode5.1.0/
                     if (ch >= '\u0000' && ch <= '\u001F' ||



Mime
View raw message