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
Source package:
python-benedict.Source repository: fabiocaccamo/python-benedict
Source document: fabiocaccamo/python-benedict
Source license: MIT License.
Example
>>> dict_to_json_safe({"a": 1})
- Returns:
JSON string.
- Return type: