NSJSONReadingMutableContainers
Specifies that arrays and dictionaries are created as mutable objects.
Available in OS X v10.7 and later.
Declared in NSJSONSerialization.h.
NSJSONReadingMutableLeaves
Specifies that leaf strings in the JSON object graph are created as instances of NSMutableString.
Available in OS X v10.7 and later.
Declared in NSJSONSerialization.h.
NSJSONReadingAllowFragments
Specifies that the parser should allow top-level objects that are not an instance of NSArray or NSDictionary.
Available in OS X v10.7 and later.
Declared in NSJSONSerialization.h.
Specifies that arrays and dictionaries are created as mutable objects.
Available in OS X v10.7 and later.
Declared in NSJSONSerialization.h.
NSJSONReadingMutableLeaves
Specifies that leaf strings in the JSON object graph are created as instances of NSMutableString.
Available in OS X v10.7 and later.
Declared in NSJSONSerialization.h.
NSJSONReadingAllowFragments
Specifies that the parser should allow top-level objects that are not an instance of NSArray or NSDictionary.
Available in OS X v10.7 and later.
Declared in NSJSONSerialization.h.
本文介绍了NSJSONSerialization中几个关键的读取选项:NSJSONReadingMutableContainers, NSJSONReadingMutableLeaves, 和 NSJSONReadingAllowFragments。这些选项分别用于指定JSON解析过程中容器对象的可变性、字符串对象的类型以及是否允许片段对象的存在。
789

被折叠的 条评论
为什么被折叠?



