S
Size: a a a
S
СГ
S
NK
S
СГ
NK
F
S
S
СГ
F
import Foundation
extension Encodable {
func jsonData() -> Data? {
let encoder = JSONEncoder()
return try? encoder.encode(self)
}
}
F
F
В
DK
ОЕ
НС
AB
request.httpBody =
try JSONSerialization.data(withJSONObject:
["foo": "bar", "foo1": 3232] as Any, options: .prettyPrinted)
это если без CodableNK