toJsonStringArray() let array2 = [NSDictionary](jsonArray: jsonArray) print("json array: \n\(jsonArray)\n\narray2:\n\(array2)") This is how you can parse a .plist into an object model. See EVReflectionIssue124.swift to see it working. if let path = Bundle(for: type(of: self...
enum CodingKeys: String, CodingKey { case id case racine } } class DictionaryEncoder { private let encoder = JSONEncoder() func encode<T>(_ value: T) throws -> [String: Any] where T : Encodable { let data = try encoder.encode(value) return try JSONSerialization.jsonObject(with: data...
toJsonStringArray() let array2 = [NSDictionary](jsonArray: jsonArray) print("json array: \n\(jsonArray)\n\narray2:\n\(array2)") This is how you can parse a .plist into an object model. See EVReflectionIssue124.swift to see it working. if let path = Bundle(for: type(of: self...