序列化为json有一些int类型的数据 个数未知 ,如下面的 3 4现在需要转成json 这个格式的//{"orderitems":[{"id":3},{"id":4}],"optype":5} 我这种形式对吗?string strJson = JsonConvert.SerializeObject(new { orderitems = list, optype = type }); 如果对的话 请问list这个怎么写呢?