Files

16 lines
341 B
Swift

//
// Dictionary+Extension.swift
//
//
// Created by NUT.Tech on 27.01.2023.
//
import Foundation
public extension Dictionary where Key == String, Value == Any {
func jsonSerialized(options: JSONSerialization.WritingOptions = []) -> Data? {
try? JSONSerialization.data(withJSONObject: self, options: options)
}
}