pyufunc.dict_to_json_safe#

pyufunc.dict_to_json_safe(mapping, **kwargs)#

Serialize a mapping to JSON with python-benedict.

Parameters:
  • mapping – Mapping to serialize.

  • **kwargs – Keyword arguments passed to benedict.to_json.

Note

Example

>>> dict_to_json_safe({"a": 1})
Returns:

JSON string.

Return type:

str