0

For example: I have a JSON like this:

{
    name : "Name",
    info: {
            info_one : "A",
            info_two : "B",
            info_three : "C" 
    }
}

When I got info item by data["info"] as? [String:String], The result was wrong order. Like:

[("info_two":"B"), ("info_three":"C"), ("info_one":"A")]

How can I fix it? Please help me, thank you!

Mannopson
  • 2,634
  • 1
  • 16
  • 32
Nam Nguyen
  • 31
  • 5

1 Answers1

0

In Objective-c, Dictionary is order less. But it`s depend on your requirement, follow it