Add option to allow custom json_dumps callable