def serialize_field(value):
 if isinstance(value, basestring):
  return value
 return json.dumps(value, cls=EdxJSONEncoder)

def serialize_field ( value ) : if isinstance ( value , basestring ) : return value return json . dumps ( value , cls = EdxJSONEncoder )
return a string version of the value .