import Foundation

let result: [String: Any] = [
  "notes": "Ops Notes (Swift)",
  "checklist": ["backup verified", "disk ok", "service ok"],
  "score": 95
]

if let data = try? JSONSerialization.data(withJSONObject: result, options: []),
   let s = String(data: data, encoding: .utf8) {
  print(s)
} else {
  print("{\"status\":\"error\"}")
}
