Permalink
Browse files

fixed json escapes

  • Loading branch information...
1 parent 823bb05 commit 9f978fb11955239eba41ae06a588613e3337f10d @erica committed Apr 17, 2009
Showing with 0 additions and 16 deletions.
  1. +0 −8 C16-Push/02-PushUtil/JSONHelper.m
  2. +0 −8 C16-Push/03-PushTweet/JSONHelper.m
View
8 C16-Push/02-PushUtil/JSONHelper.m
@@ -13,14 +13,6 @@
aString = [aString stringByReplacingOccurrencesOfString:@"\\" withString:@"\\\\"];
aString = [aString stringByReplacingOccurrencesOfString:@"/" withString:@"\\/"];
- aString = [aString stringByReplacingOccurrencesOfString:@"," withString:@"\\,"];
- aString = [aString stringByReplacingOccurrencesOfString:@"{" withString:@"\\{"];
- aString = [aString stringByReplacingOccurrencesOfString:@"}" withString:@"\\}"];
- aString = [aString stringByReplacingOccurrencesOfString:@"[" withString:@"\\["];
- aString = [aString stringByReplacingOccurrencesOfString:@"]" withString:@"\\]"];
-
- aString = [aString stringByReplacingOccurrencesOfString:@"'" withString:@"\\'"];
-
aString = [aString stringByReplacingOccurrencesOfString:@"\b" withString:@""];
aString = [aString stringByReplacingOccurrencesOfString:@"\f" withString:@""];
aString = [aString stringByReplacingOccurrencesOfString:@"\n" withString:@""];
View
8 C16-Push/03-PushTweet/JSONHelper.m
@@ -13,14 +13,6 @@
aString = [aString stringByReplacingOccurrencesOfString:@"\\" withString:@"\\\\"];
aString = [aString stringByReplacingOccurrencesOfString:@"/" withString:@"\\/"];
- aString = [aString stringByReplacingOccurrencesOfString:@"," withString:@"\\,"];
- aString = [aString stringByReplacingOccurrencesOfString:@"{" withString:@"\\{"];
- aString = [aString stringByReplacingOccurrencesOfString:@"}" withString:@"\\}"];
- aString = [aString stringByReplacingOccurrencesOfString:@"[" withString:@"\\["];
- aString = [aString stringByReplacingOccurrencesOfString:@"]" withString:@"\\]"];
-
- aString = [aString stringByReplacingOccurrencesOfString:@"'" withString:@"\\'"];
-
aString = [aString stringByReplacingOccurrencesOfString:@"\b" withString:@""];
aString = [aString stringByReplacingOccurrencesOfString:@"\f" withString:@""];
aString = [aString stringByReplacingOccurrencesOfString:@"\n" withString:@""];

0 comments on commit 9f978fb

Please sign in to comment.