iOS JSON NSString Parse

后端 未结 2 637
[愿得一人]
[愿得一人] 2020-12-05 11:20

I have a JSON string as an NSString object in iOS. I want to parse this and pull out the given parameters in the JSON string. Is there a efficient way to parse this or is th

2条回答
  •  春和景丽
    2020-12-05 11:58

    A good framework for converting JSON strings to Objective-C objects (NSArray and NSDictionary) is SBJson (Github).

    Usage:

    NSDictionary *dict = [myJsonString JSONValue];
    

提交回复
热议问题