Advertisement
Guest User

Untitled

a guest
May 21st, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. guard let data = sharedPttProfile.read_hotpost(self.hotseg.selectedSegmentIndex).data(using: .utf8) else { return }
  2. guard let json = try? JSONSerialization.jsonObject(with: data, options: []) as! NSDictionary else { return }
  3. let jsonroot: MarshalDictionary = ["root": json]
  4. self.hotjson = try? jsonroot.value(for: "root")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement