Commit 5a622266 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Titouan Soulard

slap: Add docstring to json loads byteify

parent fa3fb2a4
......@@ -787,6 +787,9 @@ def _byteify(data, ignore_dicts = False):
return data
def json_loads_byteified(json_text):
"""
Encode string when loading JSON
"""
return _byteify(
json.loads(json_text, object_hook=_byteify),
ignore_dicts=True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment