I use Newtonsoft.Json library for serializing and deserializing .NET objects.
One of the things I am serializing are tables (represented as List<List<int>>
).
What I need is to format them in the serialized file like a table, not like a bunch of columns as they are formatted now. Is there any way to achieve this?
Now, I have the following formatting in the json-file:
"Table": [
[
1024,
1024,
1024,
1024
],
[
1024,
1024,
1024,
1024
],
[
1024,
1024,
1024,
1024
]
]
What I want to achieve is this:
"Table": [
[1024, 1024, 1024, 1024],
[1024, 1024, 1024, 1024],
[1024, 1024, 1024, 1024]
]
> to JSON?
– Dharun Feb 20 '12 at 07:46> can represent a table very roughly )
– Timur Sadykov Feb 20 '12 at 07:47