Load grouped data

I was wondering if following is possible:
– Create json or XML or any other format file for grid data.
– Arrange data so that it is already grouped.
– When we call load function it will show data in grouped format.

I am trying to avoid groupBy function by doing above steps.

Unfortunately the grouping of the preloaded data is not available.
Data can be grouped only after the complete loading to the grid.

Thanks for your reply.