This is the initial PHP code preparing JSON on the server and send.
$response = array(1000 => array($ev1, $ev1, $ev3), 1001 => array($nl1, $nl2, $nl3));
This is the code on C# which is parsing that JSON.
Dictionary<string, dynamic> aa = JsonConvert.DeserializeObject<Dictionary<string, dynamic>>(e.Result);
Each outer element is key/value pair type, eg. key is 1000. Fine, this is what I want. Now when I add one more outer array according to below code and put initial one into entity, then DATA value becomes JObject type, which is disaster.
$response = array('CMD' => 4000, 'RES' => true, 'DATA' => array(1000 => array($ev1, $ev1, $ev3), 1001 => array($nl1, $nl2, $nl3)));
How can I ask JSON.NET to parse DATA as key/value pair instead of JObject?