NSJSONReadingOptions:
NSJSONReadingMutableContainers:返回可变容器,NSMutableDictionary或NSMutableArray。
NSJSONReadingMutableLeaves:返回的JSON对象中字符串的值为NSMutableString。但是此枚举值目前在iOS 7上测试不好用,应该是个bug,参见:NSJSONReadingMutableLeaves option is not working。
The problem is also mentioned here github.com/mattt/AnyJSON : "NSJSONReadingMutableLeaves is not supported (it doesn't even work with NSJSONSerialization on iOS 5+)"
NSJSONReadingAllowFragments:允许JSON字符串最外层既不是NSArray也不是NSDictionary,但必须是有效的JSON Fragment。例如使用这个选项可以解析 @“123” 这样的字符串。参见:NSJSONReadingAllowFragments reading。
NSJSONWritingOptions:
NSJSONWritingPrettyPrinted:的意思是将生成的json数据格式化输出,这样可读性高,不设置则输出的json字符串就是一整行。