Hi Paolo,
The json_encode function returns an array of records. Each record has fields with values. The Grid reads a record and get the cell value depending on the field name. If you have a Large Data Set, I think that it is better to use Server Side Paging instead of returning all records at once. Using that approach, you will return an array of ~10 records which will not consume large amount of memory. Another way is to use some custom approach and populate the Grid locally from basic Array. However, with that approach you will have to manually map the JSON to Array.
Best Regards,
Peter Stoev
jQWidgets Team
http://www.jqwidgets.com