搜索
您的当前位置:首页正文

swift json字符串转数组

来源:哗拓教育

        let packarr : NSArray = try! JSONSerialization.jsonObject(with: tempstr.data(using: String.Encoding(rawValue: String.Encoding.utf8.rawValue))!, options: .allowFragments) as! NSArray

Top