I want to serialize DataTable with custom format(much smaller) - without fieldname on each row.
For example, i have datatable with only 2 columns - ID and Name. Resulting Json should be:
{
"Columns":
[
{"ID": "Int"},
{"Name": "String"},
],
"Rows":
[
["1","John Smith"],
["2","Mary Williams"]
]
}
Following format will serialize even empty datatables and will not produce fieldname dublication on each row.
Any suggestion how to do it ?