You almost have it. Note that JSONSerialization is all class methods, not instance methods, so you call it like this:
let someArrayOrDictionary = try JSONSerialization.jsonObject(from: myDataObjectContainingJSON)
Topic:
App & System Services
SubTopic:
General
Tags: