I am trying to parse a JSON which contains a dictionary like this:
{"key1" : "value1", "key2" : "value2", "key3" : "value3", ..., "key_n", "value_n"}
.
I want to parse this JSON to a Dictionary
in Swift, but the order is very important to keep. I know that Swift does not have any Ordered Dictionary type, but is there any way to overcome this?
Note that the JSON I'm parsing contains hundreds of keys and there's no value I can sort on (asc. / desc.) afterwards to recreate the order.