<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _process_value(self, value, type):
 """ Process a value that will be sent to backend :param value: the value to return :param type: hint for what sort of value this is :type type: str """


        if not isinstance(value, six.string_types + (list,)):
            value = json.dumps(value)
        return value