def _process_value(self, value, type):
if not isinstance(value, six.string_types + (list,)):<EOL><INDENT>value = json.dumps(value)<EOL><DEDENT>return value<EOL>
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