我JSON的格式如下:轉換JSON到數據表
[
{"id":"10","name":"User","add":false,"edit":true,"authorize":true,"view":true},
{"id":"11","name":"Group","add":true,"edit":false,"authorize":false,"view":true},
{"id":"12","name":"Permission","add":true,"edit":true,"authorize":true,"view":true}
]
我如何可以轉換成C#DataTable
對象,如下所示?
---------------------------------------------------------------------
ID | Name | Add | Edit | View | Authorize
---------------------------------------------------------------------
10 | User | true | true | true | true
11 | Group | true | true | true | true
12 | Permission| true | true | true | true
請將[本] [1]問題的答案作爲參考。 [1]:http://stackoverflow.com/questions/2246694/how-to-convert-json-object-to-custom-c-sharp-object – 2012-08-16 06:04:35
可能[如何轉換JSON的副本到datatable?](http://stackoverflow.com/questions/7641004/how-to-convert-json-into-datatable) – wildcat 2015-07-23 09:18:20