[转]Cannot deserialize the current JSON array (e.g. [1,2,3]) into type


string content =[{"id": 3636, "is_default": true, "name": "Unit", "quantity": 1, "stock": "100000.00", "unit_cost": "0"}, {"id": 4592, "is_default": false, "name": "Bundle", "quantity": 5, "stock": "100000.00", "unit_cost": "0"}]
JsonConvert.DeserializeObject<RootObject>(content);
posted @ 2017-10-13 13:27  *人丑就该多读书*  阅读(9431)  评论(1编辑  收藏  举报