From 6922a053669a69e1468ebc12acbe16bd36aa0326 Mon Sep 17 00:00:00 2001 From: Jan Kowalski Date: Thu, 22 Mar 2018 15:50:21 +0100 Subject: [PATCH] Add kwargs to Json dumps method --- lib/_json.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/_json.py b/lib/_json.py index 71c2b76c..ac567b77 100644 --- a/lib/_json.py +++ b/lib/_json.py @@ -62,14 +62,14 @@ class Json(object): if proto is ISQLQuote: return self - def dumps(self, obj): + def dumps(self, obj, **kwargs): """Serialize *obj* in JSON format. The default is to call `!json.dumps()` or the *dumps* function provided in the constructor. You can override this method to create a customized JSON wrapper. """ - return self._dumps(obj) + return self._dumps(obj, **kwargs) def prepare(self, conn): self._conn = conn