<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _decimal_to_json(value):
 """Coerce 'value' to a JSON-compatible representation."""

    if isinstance(value, decimal.Decimal):
        value = str(value)
    return value