Closed tobyworks closed 5 years ago
struct SearchFilter : Codable {
var version : String
var environment : String
var type: [String: String]
var dropdowns : [String: [String: [String: String]]]
var dropdownsOrdering: [String: [Int: String]]
var dropdownTitles: [String: String]
var options : [String: [String: String]]
}
Decided to use codable instead
@tobybonhof Tip: you can make using Codable even easier with https://github.com/evermeer/Stuff#codable
I have the following json for example
Type.json
Is it possible to parse this to an object like:
I'm coming from Android dev and GSON. In json this is super easy to get but not sure how to get it working on iOS
I can't parse this manually putting all keys in the object. Since this object is dynamic from the server. And will always contain different keys and values, The only known factor in this all is the root keys.
type
andfilter