system.kanoa.utilities.convertDatasetRowToJSON(data, rowIndex)
Converts the dataset row to a dictionary.
Parameters
data Dataset: Can be a pyDataset or a basic dataset)
rowIndex Integer: index of the row to be converted to JSON. Usually is 0
Returns
convertedDict dictionary
Example
data = system.kanoa.shift.getShiftNames({'shiftName': '1st Shift'})
print system.kanoa.utilities.convertDatasetRowToJSON(data, 0)
> {
'shiftName': u'1st Shift',
'changedDate': None,
'createdDate': None,
'createdBy': None,
'changedBy': None,
'shiftNameId': 1
}