def preprocess(self, params):
		for key, value in params.iteritems():
			if isinstance(value, (dict, list)):
				params[key] = json.dumps(value)

		return params
convert dicts, lists to json
dataset/ETHPy150Open frappe/frappe/frappe/frappeclient.py/FrappeClient.preprocess