You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe. DeepDiff.json(...) uses json.dumps(...) and json.dumps has a few parameters (namely indent) that I'd like to use.
Describe the solution you'd like to_json(...) could either have arguments used by dumps (ex: skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, sort_keys=False) or simply have **kwargs that get passed to dumps.
Describe alternatives you've considered
The alternative I did was to pretty much duplicate DeepDiff.to_json(...)'s functionality in order to use indent:
Is your feature request related to a problem? Please describe.
DeepDiff.json(...)
usesjson.dumps(...)
andjson.dumps
has a few parameters (namelyindent
) that I'd like to use.Describe the solution you'd like
to_json(...)
could either have arguments used bydumps
(ex:skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, sort_keys=False
) or simply have**kwargs
that get passed todumps
.so either:
or
Describe alternatives you've considered
The alternative I did was to pretty much duplicate
DeepDiff.to_json(...)
's functionality in order to useindent
:Additional context
This allows for more powerful usage of
DeepDiff.to_json(...)
.The text was updated successfully, but these errors were encountered: