-1

I am receiving response from json web service and able to parse it. But when I am parsing the json data using [mydic allKeys] (as unknown keys will be parse using allKeys method) it gives me response but it changes the order of receiving keys.

So I want the order should not be changed. If anybody knows the solution please help.

Thanks.

Pradumna Patil
  • 2,180
  • 3
  • 17
  • 46

1 Answers1

1

This is a known behavior. The documentation states:

allKeys Property

A new array containing the dictionary’s keys, or an empty array if the dictionary has no entries

The order of the elements in the array is not defined.

Otávio
  • 735
  • 11
  • 23