Basics of Serialization

if let data = data {
	let parsedResult: AnyObject!
	do {
		parsedResult = try NSJSONSerialization.JSONObjectWithData(data, options: AllowFraments)
	} catch {
		displayError("could not parse the data as JSON: '\(data)'")
		return
	}
}