Received: by 10.66.78.170 with SMTP id c10mr641969pax.22.1347282412779; Mon, 10 Sep 2012 06:06:52 -0700 (PDT) Path: a8ni36098357pbd.1!nntp.google.com!news.glorb.com!usenet.stanford.edu!not-for-mail From: Vitaliy Newsgroups: gnu.gnustep.bug Subject: [bug #37314] NSJSONSerialization converts string to JSON incorrect Date: Mon, 10 Sep 2012 13:06:38 +0000 Lines: 60 Approved: bug-gnus...@gnu.org Message-ID: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 X-Trace: usenet.stanford.edu 1347282412 3111 208.118.235.17 (10 Sep 2012 13:06:52 GMT) X-Complaints-To: action@cs.stanford.edu To: Vitaliy , bug-gnus...@gnu.org Envelope-to: bug-gnus...@gnu.org X-PHP-Originating-Script: 0:sendmail.php X-Savane-Server: savannah.gnu.org:443 [140.186.70.70] X-Savane-Project: gnustep X-Savane-Tracker: bugs X-Savane-Item-ID: 37314 User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1 X-Apparently-From: 109.197.216.223 (Savane authenticated user vmyrik) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.70 X-BeenThere: bug-gnus...@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNUstep programming environment List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain;charset=UTF-8 URL: Summary: NSJSONSerialization converts string to JSON incorrect Project: GNUstep Submitted by: vmyrik Submitted on: Mon 10 Sep 2012 01:06:37 PM GMT Category: Base/Foundation Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: I have NSDictionary instance that contains multi-line string. When I serialize it using NSJSONSerialization, I get the following: {"key": "bla-bla bla-bla"} instead of: {"key":"bla-bla \n bla-bla"} JSON standard implies that line-feed should be represented as "\n". Apple's implementation of NSJSONSerialization behaves well. P.S. Sorry for my English. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Mon 10 Sep 2012 01:06:37 PM GMT Name: string.gif Size: 17kB By: vmyrik _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/