|
From: | Vitaliy |
Subject: | [bug #37314] NSJSONSerialization converts string to JSON incorrect |
Date: | Mon, 10 Sep 2012 13:06:38 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1 |
URL: <http://savannah.gnu.org/bugs/?37314> 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 <http://savannah.gnu.org/bugs/download.php?file_id=26520> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?37314> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |