How can i get the row json data with rid?

How can i get the row json data with rid?

Unfortunately such feature is not available.
You may only try to get all row content using the forEachrow function:
docs.dhtmlx.com/api__dhtmlxgrid_foreachcell.html
and create a json object based on the values you’ve got manually.