今天遇到個棘手的問題,
假如有個數(shù)據(jù)是:
{a:123, c:123 ,b:123}
系統(tǒng)自帶的:
NSDictionary *resposeJson = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingAllowFragments error:nil];
轉(zhuǎn)出來之后就是:
{a:123 ,b:123, c:123}
key會自動排序。
誰知道怎么能讓key不排序轉(zhuǎn)出來?