load grid from json

Hi i load grid from json format file, but when file is empty i have error on page in the string 804 that the length of element is null…
if json can be empty at sometime how i can use load function without error message with NULL lenght ???

Unfortunately the issue cannot be reproduced locally.
Please, provide your generated “empty” json.

hi, it’s empty file with 0kb size …

Unfortunately it’s not available to load the empty file. It should contain:

{ rows:[] }
for a correct loading of the blank grid.

You will have to check your file before the loading to the grid.

thx !