Created
May 30, 2019 02:38
-
-
Save zyqhi/9ad3637cd50bc5e5d25c7d0cc0c471bf to your computer and use it in GitHub Desktop.
Generate JSON string from NSDictionary in iOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NSString *str = [[NSString alloc] initWithData:[NSJSONSerialization dataWithJSONObject:dict options:0 error:nil] encoding:NSUTF8StringEncoding]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment