You can’t achieve such result with default serialization function.
The API of component allows to loop though all rows, and for a row for each cell. So it possible to write your own data seriaizer, which will produce a data in the desired format.
Thanks Stanislav, I am able to achieve this by custom serializer