Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- guard let data = sharedPttProfile.read_hotpost(self.hotseg.selectedSegmentIndex).data(using: .utf8) else { return }
- guard let json = try? JSONSerialization.jsonObject(with: data, options: []) as! NSDictionary else { return }
- let jsonroot: MarshalDictionary = ["root": json]
- self.hotjson = try? jsonroot.value(for: "root")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement