def _row_from_json(row, schema):
 row_data = []
 for (field, cell) in zip(schema, row['f']):
  converter = _CELLDATA_FROM_JSON[field.field_type]
  if (field.mode == 'REPEATED'):
   row_data.append([converter(item['v'], field) for item in cell['v']])
  else:
   row_data.append(converter(cell['v'], field))
 return tuple(row_data)

def _row_from_json ( row , schema ) : row_data = [ ] for ( field , cell ) in zip ( schema , row [ 'f' ] ) : converter = _CELLDATA_FROM_JSON [ field . field_type ] if ( field . mode == 'REPEATED' ) : row_data . append ( [ converter ( item [ 'v' ] , field ) for item in cell [ 'v' ] ] ) else : row_data . append ( converter ( cell [ 'v' ] , field ) ) return tuple ( row_data )
convert json row data to row with appropriate types .