Permalink
Browse files

slash have not to be encoded

  • Loading branch information...
1 parent eb9affd commit 96631e0f3c891e7fcb3b7d31ee6bcaeec2bc28ab @lm committed Feb 26, 2012
Showing with 1 addition and 2 deletions.
  1. +0 −1 Json/Json.st
  2. +1 −1 tests/JsonTest.st
View
@@ -57,7 +57,6 @@ Object subclass: Json [
ifFalse: [
$" = aCharacter ifTrue: [^aStream nextPutAll: '\"'].
$\ = aCharacter ifTrue: [^aStream nextPutAll: '\\'].
- $/ = aCharacter ifTrue: [^aStream nextPutAll: '\/'].
aStream nextPut: aCharacter]
]
View
@@ -95,7 +95,7 @@ TestCase subclass: JsonTest [
string := ((0 to: 128) collect: [ :code | Character codePoint: code]) asUnicodeString.
expected := '"\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000B\f\r\u000E',
'\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B',
- '\u001C\u001D\u001E\u001F !\"#$%&''()*+,-.\/0123456789:;<=>?@ABCDEFGHIJKLMNOPQRS',
+ '\u001C\u001D\u001E\u001F !\"#$%&''()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRS',
'TUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u007F', (Character codePoint: 128) asString, '"'.
self stringify: string equals: expected.

0 comments on commit 96631e0

Please sign in to comment.