How to get JSON response as NSDictionary but follow the response order


#1

Hi guys, how can I get JSON response order when I cast it as NSDictionary?


#2

if sabog na sabog ung order na response, then there is no way to do that.

if may pattern naman, say alphabetical ung keys. pwede save mo ung keys ng JSON response sa array. tapos sort mo ung dictionary by key na laman ng array.


#3

Thanks for replying. Mukang walang way nga. Ipa list type ko na lang sya sa backend namin para malagay ko sya sa array,