Make JSON records for selected rows