我有一本字典,如:獲取NSDictionary的對象到數組中?
{
levels = {
exchange = {
text = ALL;
};
product = {
text = ALL;
};
segment = {
text = ALL;
};
symbol = {
text = ALL;
};
};
marginavailable = {
adhocmargin = {
text = "0.00";
};
branchadhoc = {
text = "0.00";
};
cashmarginavailable = {
text = "0.00";
};
collateralvalue = {
text = "0.00";
};
credits = {
text = "0.00";
};
directcollateralvalue = {
text = "0.00";
};
notionalcash = {
text = 0;
};
payinamount = {
text = "0.00";
};
};
marginutilised = {
adhocscripmargin = {
text = "0.00";
};
category = {
text = 0;
};
cncmarginused = {
text = 0;
};
cncsellcreditpresent = {
text = 0;
};
debits = {
text = "0.00";
};
elm = {
text = "0.00";
};
exposuremargin = {
text = "0.00";
};
grossexposurevalue = {
text = "0.00";
};
ipoamount = {
text = "0.00";
};
mfamount = {
text = "0.00";
};
multiplier = {
text = "0.00";
};
payoutamount = {
text = "0.00";
};
premiumpresent = {
text = "0.00";
};
realisedmtom = {
text = "-0.00";
};
scripbasketmargin = {
text = "0.00";
};
spanmargin = {
text = "0.00";
};
subtotal = {
text = "0.00";
};
turnover = {
text = "0.00";
};
unrealisedmtom = {
text = "-0.00";
};
valueindelivery = {
text = "0.0";
};
varmargin = {
text = "0.00";
};
};
net = {
text = "0.00";
};
}
以上字典有四個按鍵即水平,marginavailable,marginutilised和淨利潤等
我想從第一三個按鍵和最後目標對象到一個數組。我嘗試了很多,但沒有找到任何邏輯來解析它。
我想解釋的陣列提前這個
exchange = {
text = ALL;
};
product = {
text = ALL;
};
segment = {
text = ALL;
};
symbol = {
text = ALL;
};
adhocmargin = {
text = "0.00";
};
branchadhoc = {
text = "0.00";
};
cashmarginavailable = {
text = "0.00";
};
collateralvalue = {
text = "0.00";
};
credits = {
text = "0.00";
};
directcollateralvalue = {
text = "0.00";
};
notionalcash = {
text = 0;
};
payinamount = {
text = "0.00";
};
adhocscripmargin = {
text = "0.00";
};
category = {
text = 0;
};
cncmarginused = {
text = 0;
};
cncsellcreditpresent = {
text = 0;
};
debits = {
text = "0.00";
};
elm = {
text = "0.00";
};
exposuremargin = {
text = "0.00";
};
grossexposurevalue = {
text = "0.00";
};
ipoamount = {
text = "0.00";
};
mfamount = {
text = "0.00";
};
multiplier = {
text = "0.00";
};
payoutamount = {
text = "0.00";
};
premiumpresent = {
text = "0.00";
};
realisedmtom = {
text = "-0.00";
};
scripbasketmargin = {
text = "0.00";
};
spanmargin = {
text = "0.00";
};
subtotal = {
text = "0.00";
};
turnover = {
text = "0.00";
};
unrealisedmtom = {
text = "-0.00";
};
valueindelivery = {
text = "0.0";
};
varmargin = {
text = "0.00";
};
net = {
text = "0.00";
};
感謝等。
這是否詞典包含詞典? – AppleDelegate 2013-02-14 09:31:27