0
JSONファイルをC#でデシリアライズしたいので、各注文はすべての値が可能な別々の行にあります。私はJSONをdeserialisingに問題はありませんが、これは可変属性名を持っています。たとえば、以下のファイルは、O1ZBIX-GGYTG-RJVXNK & ORJZUB-AL7JW-7BBWPZという2つの順序を持っています。どうすればいいのかアドバイスをお願いします。変数名付きDeserialise JSON
{
"error": [],
"result": {
"open": {
"O1ZBIX-GGYTG-RJVXNK": {
"refid": null,
"userref": null,
"status": "open",
"opentm": 1486584202.2485,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTEUR",
"type": "sell",
"ordertype": "limit",
"price": "1019.000",
"price2": "0",
"leverage": "none",
"order": "sell 0.20809000 XBTEUR @ limit 1019.000"
},
"vol": "0.20809000",
"vol_exec": "0.00000000",
"cost": "0.00000",
"fee": "0.00000",
"price": "0.00000",
"misc": "",
"oflags": "fciq"
},
"ORJZUB-AL7JW-7BBWPZ": {
"refid": null,
"userref": null,
"status": "open",
"opentm": 1486468345.44,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "LTCEUR",
"type": "sell",
"ordertype": "limit",
"price": "3.78000",
"price2": "0",
"leverage": "none",
"order": "sell 54.20054000 LTCEUR @ limit 3.78000"
},
"vol": "54.20054000",
"vol_exec": "0.00000000",
"cost": "0.00000",
"fee": "0.00000",
"price": "0.00000",
"misc": "",
"oflags": "fciq"
}
}
}
}
は、あなたが ''辞書<文字列、がMyType>各順序キーをデシリアライズすることはできませんでしょうか? –
両方の注文には、キーの番号、注文、および名前がまったく同じです。 – rism
私はあなたが何を求めているのか分かりません。 – CodingYoshi