helper for serialize_row

def transform_specialfield(jsonify,f,v):
  "helper for serialize_row"
  raw = f.ser(v) if is_serdes(f) else v
  return ujson.dumps(raw) if not isinstance(f,basestring) and jsonify else raw