📅  最后修改于: 2022-03-11 15:01:08.546000             🧑  作者: Mango
func json(from object:Any) -> String? {
guard let data = try? JSONSerialization.data(withJSONObject: object, options: []) else {
return nil
}
return String(data: data, encoding: String.Encoding.utf8)
}