def _int_to_json(value):
 if isinstance(value, int):
  value = str(value)
 return value

def _int_to_json ( value ) : if isinstance ( value , int ) : value = str ( value ) return value
coerce value to an json-compatible representation .