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/ _______________________________________________ Bug-gnustep mailing list Bug-gnustep@gnu.org https://lists.gnu.org/mailman/listinfo/bug-gnustep