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